This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56272] Poor diagnostics for error: specialization of ... after instantiation
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Aug 2017 14:23:35 +0000
- Subject: [Bug c++/56272] Poor diagnostics for error: specialization of ... after instantiation
- Auto-submitted: auto-generated
- References: <bug-56272-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56272
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-08-21
CC| |egallager at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
With a caret, that is:
$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 56272.cc
56272.cc:11:40: error: specialization of ‘void A<T>::Invert() [with T =
double]’ after instantiation
template <> void A < double >::Invert ();
^
56272.cc: In instantiation of ‘void A<T>::Invert() [with T = double]’:
56272.cc:9:16: required from here
56272.cc:5:16: warning: unused variable ‘a’ [-Wunused-variable]
A < double >a;
^
$
Confirmed that it could use an extra note.