This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15989] New: Reference initialization with conditionally dependent argument causes spontaneous termination


Programme spontaneously terminates during execution. Cause seems to be related
to presence in the code of statements of the form

int b,c;

Instance d,e;

..some statements involving d,e <<----spontaneously terminates here 

..lots of code

Instance & a ( b > c ? d : e); <<-----successfully executes without these lines

Programme


Source is v long and too complicated to post, I am just sending this on the
possibility that this is a reported bug and that there is a workaround.
Compiling with -Wall reveals nothing.

I tried this again on another linux machine running older gcc (3.2.2), and the
programme executed correctly. At optimization level -O3 only, however, the
programme did not execute correctly and the same symptom described above was
observed.

-- 
           Summary: Reference initialization with conditionally dependent
                    argument causes spontaneous termination
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: v dot lesk at imperial dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: Redhat Linux  2.4.7-10
GCC target triplet: Redhat Linux  2.4.7-10


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15989


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]