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++/10586: [3.4 regression] ICE in make_typename_type with "typename typeof(x)::T"


>Number:         10586
>Category:       c++
>Synopsis:       [3.4 regression] ICE in make_typename_type with "typename typeof(x)::T"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 01 20:56:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Bangerth
>Release:        unknown-1.0
>Organization:
>Environment:
present 3.4 CVS
>Description:
This is of course bogus:
-------------------------
int foo ()
{
  typename typeof(int)::X q;
}
-------------------------

This got us just an error until 3.3, but now ICEs:

g/x> /home/bangerth/bin/gcc-3.4-pre/bin/bin/c++ -c x.cc
x.cc: In function `int foo()':
x.cc:3: error: using `typename' outside of template
x.cc:3: error: expected nested-name-specifier
x.cc:3: error: expected identifier
x.cc:3: internal compiler error: in make_typename_type, at cp/decl.c:5456
Please submit a full bug report,
>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]