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++/9432: [3.4 regression] ICE in validate_nonmember_using_decl, at cp/decl2.c:4152


>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:


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