Bug 99071 - Gnu __typeof__ extension to g++ throws internal compiler error
Summary: Gnu __typeof__ extension to g++ throws internal compiler error
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 8.0
Hardware: i686
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
: 106564 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-07-13 22:47 UTC by Timothy Wesson
Modified: 2007-04-18 16:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-04 00:10:59 UTC
Embargoed:


Attachments (Terms of Use)
Source file that generates compiler error (21.06 KB, text/plain)
2003-07-13 22:52 UTC, Timothy Wesson
no flags Details

Description Timothy Wesson 2003-07-13 22:47:42 UTC
Description of problem:
Gnu typeof entension used to create polymorphic return types causes the compiler
to baulk

Version-Release number of selected component (if applicable):
gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

How reproducible:
Compile attached file.

Steps to Reproduce:
1. Compile attached file thus:
   g++ -g -Wall matrix.cpp
2.
3.
    
Actual results:
matrix.cpp: In function `int main()':
matrix.cpp:723: Internal compiler error in write_type, at cp/mangle.c:1458

Expected results:
Silent compile, generating a.out

Additional info:
The file throws the same error under DOS, running gxx (gcc version 2.23), but
said machine is not available from home, where I now am.

Comment 1 Timothy Wesson 2003-07-13 22:52:45 UTC
Created attachment 92901 [details]
Source file that generates compiler error

Source file that generates compiler error when compiled with g++;
"g++ matrix.cpp" is sufficient to generate the error.

Comment 2 Jakub Jelinek 2003-07-18 15:03:38 UTC
http://gcc.gnu.org/PR11578

Comment 3 Richard Henderson 2004-10-04 00:10:59 UTC
Still fails in gcc 4.0.  There is sporadic activity on the gcc PR.

Comment 4 Richard Henderson 2004-10-04 04:34:42 UTC
*** Bug 106564 has been marked as a duplicate of this bug. ***


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