public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9432: [3.4 regression] ICE in validate_nonmember_using_decl, at cp/decl2.c:4152
@ 2003-01-24 11:16 rguenth
  0 siblings, 0 replies; only message in thread
From: rguenth @ 2003-01-24 11:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9432
>Category:       c++
>Synopsis:       [3.4 regression] ICE in validate_nonmember_using_decl, at cp/decl2.c:4152
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 24 11:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Richard Guenther
>Release:        g++-3.4 (GCC) 3.4 20030124 (experimental)
>Organization:
>Environment:
ix86-linux
>Description:
The following testcase ICEs with

using2.cpp: In member function `void Bar<T>::foo()':
using2.cpp:6: internal compiler error: in validate_nonmember_using_decl, at 
   cp/decl2.c:4152
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Maybe this is even legal ISO C++? Pulling the using declaration to class scope makes the ICE go away.

Previous (old parser) g++ give a parse error on the code,
my available EDG based compiler (intel icpc) ICEs, too.


template <class T> struct Foo;
template <class T>
struct Bar : public Foo<T> {
        void foo()
        {
                using Foo<T>::i;
        }
};
>How-To-Repeat:

>Fix:

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-24 11:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-24 11:16 c++/9432: [3.4 regression] ICE in validate_nonmember_using_decl, at cp/decl2.c:4152 rguenth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).