PR c++/62314: add fixit hint for missing "template <> " in explicit specialization
commit002c3f2881626f4dea765f89e4a11be1f4bac240
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 May 2016 18:36:40 +0000 (2 18:36 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 May 2016 18:36:40 +0000 (2 18:36 +0000)
tree8d26fa504b2e7220ab6773ed0be0b990af6b247d
parentcff84c1ad7fbad44fd178e9070baaa8134b4850f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235777 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr62314.C [new file with mode: 0644]