Bug 15989 - Reference initialization with conditionally dependent argument causes spontaneous termination
Summary: Reference initialization with conditionally dependent argument causes spontan...
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-14 16:28 UTC by v.lesk@imperial.ac.uk
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: Redhat Linux 2.4.7-10
Target: Redhat Linux 2.4.7-10
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description v.lesk@imperial.ac.uk 2004-06-14 16:28:14 UTC
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.
Comment 1 Wolfgang Bangerth 2004-06-14 16:37:37 UTC
We can't do much without any source code. Please review what we need in 
  http://gcc.gnu.org/bugs.html 
 
W. 
Comment 2 Andrew Pinski 2004-09-13 07:55:17 UTC
No feedback in 3 months (T-1 day).