Problem 542 - case
Summary: case
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: visualization (show other problems)
Version: 5.2
Hardware: PC Linux
: P4 minor
Assignee: Satoshi Tanaka
URL:
Depends on:
Blocks:
 
Reported: 2003-10-09 05:38 CEST by Koichi Murakami
Modified: 2004-02-17 08:51 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Koichi Murakami 2003-10-09 05:38:14 CEST
In G4HepRepSceneHandler.cc,

void G4HepRepSceneHandler::AddPrimitive (const G4Polymarker& line) {
    ...
    switch (line.GetMarkerType()) {
        case line.dots:
        case line.circles:
        case line.squares:
        case line.line:
     ...

Expressions of "line.xxx" in case statements cause compile errors
for Intel icc compiler.
I know, of course,  icc is not a supported compiler, but i think it is more
prefered and robust to make small changes to be like

   case G4Polymarker::dots:
   case G4Polymarker::circles:
   ...
Comment 1 Gabriele Cosmo 2004-02-17 08:51:59 CET
Problem now fixed in latest patch to release 6.0.