19884 – ICE on explicit instantiation of a non-template constructor (original) (raw)
Description Volker Reichelt 2005-02-10 23:05:21 UTC
The following code snippet causes an ICE since gcc 3.3:
========================== struct A; template A<>::A();
ctor.cc:2: error: 'A' is not a template ctor.cc:2: error: explicit qualification in declaration of `A A()' ctor.cc:2: internal compiler error: in lookup_template_function, at cp/pt.c:4245 Please submit a full bug report, [etc.]
This is similar to PR 19764 (only with the constructor instead of the destructor), but the failure is in a different position and it's not fixed in mainline.