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.

Reply via email to