Bug 147385 - Compiler error in gcc 3.4
Summary: Compiler error in gcc 3.4
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
(Show other bugs)
Version: 3
Hardware: i386 Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-02-07 20:22 UTC by Christian Lessig
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-02-07 21:58:40 UTC
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 20:24 UTC, Christian Lessig
no flags Details
Preprocessed source (130.56 KB, text/plain)
2005-02-07 20:25 UTC, Christian Lessig
no flags Details
Source code (2.96 KB, text/plain)
2005-02-07 20:26 UTC, Christian Lessig
no flags Details

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

Description Christian Lessig 2005-02-07 20:22:02 UTC
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 20:24:59 UTC
Created attachment 110747 [details]
Preprocessed source

Comment 2 Christian Lessig 2005-02-07 20:25:06 UTC
Created attachment 110748 [details]
Preprocessed source

Comment 3 Christian Lessig 2005-02-07 20:26:04 UTC
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 21:45:20 UTC
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 21:58:40 UTC
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.