[Bug c++/10710] ICE (segault) after "error: non-template used as parameter"

giovannibajo@libero.it gcc-bugzilla@gcc.gnu.org
Thu May 22 23:08:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10710


giovannibajo@libero.it changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From giovannibajo@libero.it  2003-05-22 22:59 -------
This was _HARD_. Reduced snippet is:

------------------------------------
struct Bar
{
    Bar();
};

Bar a;

template <typename T>
struct Foo
{};

template struct Foo<BOGUS<int> >;
------------------------------------
pr10710.cpp:12: error: `BOGUS' was not declared in this scope
pr10710.cpp:12: error: syntax error before `>' token
pr10710.cpp:6: error: definition provided for explicit instantiation
pr10710.cpp:6: error: non-template used as template
pr10710.cpp:6: internal compiler error: Segmentation fault
Please submit a full bug report,

Confirmed from 2.95 -> 3.3 but fixed on mainline already (20030503).




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list