c++/9432: [3.4 regression] ICE in validate_nonmember_using_decl, at cp/decl2.c:4152
rguenth@tat.physik.uni-tuebingen.de
rguenth@tat.physik.uni-tuebingen.de
Fri Jan 24 12:49:00 GMT 2003
>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:
More information about the Gcc-bugs
mailing list