public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56272] New: Poor diagnostics for error: specialization of ... after instantiation
@ 2013-02-10 2:22 ppluzhnikov at google dot com
0 siblings, 0 replies; only message in thread
From: ppluzhnikov at google dot com @ 2013-02-10 2:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56272
Bug #: 56272
Summary: Poor diagnostics for error: specialization of ...
after instantiation
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ppluzhnikov@google.com
Test case:
template <typename T> class A
{
void Invert ()
{
A < double >a;
}
};
template class A<double>;
template <> void A < double >::Invert ();
g++ -c t.ii
t.ii:11:40: error: specialization of ‘void A<T>::Invert() [with T = double]’
after instantiation
Yes, but where was instantiation triggered?
In this reduced test case, it's obvious, but in a real test case I have 2MB of
text, the code builds fine with gcc-4.7, and the instantiation point is nowhere
to be seen.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-10 2:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-10 2:22 [Bug c++/56272] New: Poor diagnostics for error: specialization of ... after instantiation ppluzhnikov at google dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).