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]

c++/10820: [3.3 regression] ICE in poplevel with attributes


>Number:         10820
>Category:       c++
>Synopsis:       [3.3 regression] ICE in poplevel with attributes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 16 15:26:03 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Bangerth
>Release:        unknown-1.0
>Organization:
>Environment:
present 3.3
>Description:
Might or might not be related to 10617 and 10709:
--------------------------
template<typename T>
struct X {
    X (int);
};

template<typename T>
X<T>::X (int i __attribute__ (())) {}
---------------------------

This didn't ICE in 2.95, but does so in 3.2 and 3.3:

g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc
x.cc:7: error: parse error before `__attribute__'
x.cc:7: internal compiler error: in poplevel, at cp/decl.c:1296
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

It's fixed in 3.4 though.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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