[Bug c++/42915] [4.5 Regression] ICE: same canonical type node for different types in recent builds
zsojka at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Tue Feb 2 14:07:00 GMT 2010
------- Comment #3 from zsojka at seznam dot cz 2010-02-02 14:07 -------
> ice-on-invalid-code
I believe the code is valid, or at least can be made valid by adding a return
statement. The ICE happens when parser gets to '{', even this fails:
...
A<T>::B<U> A<T>::B<U>::foo() {
the actual content of function definition doesn't matter,
(Comeau Online accepts that code without any warning when a return statement is
added, in strict C++03 mode)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42915
More information about the Gcc-bugs
mailing list