Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 147385 - Compiler error in gcc 3.4
Compiler error in gcc 3.4
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2005-02-07 15:22 EST by Christian Lessig
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-02-07 16:58:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Preprocessed source (130.56 KB, application/octet-stream)
2005-02-07 15:24 EST, Christian Lessig
no flags Details
Preprocessed source (130.56 KB, text/plain)
2005-02-07 15:25 EST, Christian Lessig
no flags Details
Source code (2.96 KB, text/plain)
2005-02-07 15:26 EST, Christian Lessig
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 19812 None None None Never

  None (edit)
Description Christian Lessig 2005-02-07 15:22:02 EST
Description of problem:

Compiler error in gcc

Version-Release number of selected component (if applicable):

gcc 3.4

How reproducible:

Attached a source code fragment (otherwise OpenSG required). Full
example available upon request.

Steps to Reproduce:
Actual results: Compiling fails.

Expected results: Compiling succeeds.

Additional info:
Comment 1 Christian Lessig 2005-02-07 15:24:59 EST
Created attachment 110747 [details]
Preprocessed source
Comment 2 Christian Lessig 2005-02-07 15:25:06 EST
Created attachment 110748 [details]
Preprocessed source
Comment 3 Christian Lessig 2005-02-07 15:26:04 EST
Created attachment 110749 [details]
Source code

Attached the source file. The lines above the error causing code (ln. 66 and
ln. 72) are accepted by the compiler.


Christian Lessig
Fraunhofer IGD / Bauhaus-Universität Weimar
Comment 4 Jakub Jelinek 2005-02-07 16:45:20 EST
Simplified testcase:

extern double foo (double);

template <class T>
struct A
  T y () const;

typedef A <float> B;

template <unsigned int T>
struct C
  C ();
  B c;
  float r;

template <unsigned int T>
C<T>::C ()
  r = foo (c.y);

G++ 3.4 ICEs on this, G++ 3.2 accepts it, G++ CVS HEAD rejects it with:
147385.ii: In constructor <T>::C()':
147385.ii:22: error: not enough type information
Comment 5 Jakub Jelinek 2005-02-07 16:58:40 EST
Given that this is ICE on invalid as far as I can judge (you want
cartesian.y () instead of cartesian.y and similarly for x and z), I'm moving this

Note You need to log in before you can comment on or make changes to this bug.