PR c++/62314: add fixit hint for missing "template <> " in explicit specialization
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 2 May 2016 18:36:40 +0000 (18:36 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 2 May 2016 18:36:40 +0000 (18:36 +0000)
commit474e0129ac2e906caa667eb7a9a7682afeec41aa
tree8d26fa504b2e7220ab6773ed0be0b990af6b247d
parent4877b5a4ac000f13c9e167710d1b060eff5764f4
PR c++/62314: add fixit hint for missing "template <> " in explicit specialization

gcc/cp/ChangeLog:
PR c++/62314
* parser.c (cp_parser_class_head): Capture the start location;
use it to emit a fix-it insertion hint when complaining
about missing "template <> " in explicit specializations.

gcc/testsuite/ChangeLog:
PR c++/62314
* g++.dg/pr62314.C: New test case.

From-SVN: r235777
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr62314.C [new file with mode: 0644]