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]

c++/3792: Internal compiler error in grokdeclarator, at cp/decl.c:9760



>Number:         3792
>Category:       c++
>Synopsis:       Internal compiler error in grokdeclarator, at cp/decl.c:9760
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 24 09:36:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     david.abrahams@rcn.com
>Release:        gcc-3.0
>Organization:
>Environment:
cygwin / Win2000
>Description:
I have reduced the problem reported in c++/3791, but GnatsWeb won't let me edit the existing report (sorry).

etest.cpp:11: Internal error #19990331.
etest.cpp:11: Internal compiler error in grokdeclarator, at cp/decl.c:9760
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
template <class T, class U>
struct x
{
    template <class V> struct y {};
};

template <class T, class U, class V>
struct xy
{
    typedef /* typename */ x<T,U>::template y<V> y;
    y yy;
};

void f() { xy<int,char,void*> x_y; }

>Fix:
uncommenting "typename" above makes the program conforming and prevents the internal compiler error
>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]