This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/62314] Fix-it Hints
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 May 2016 18:37:12 +0000
- Subject: [Bug c++/62314] Fix-it Hints
- Auto-submitted: auto-generated
- References: <bug-62314-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62314
--- Comment #6 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Mon May 2 18:36:40 2016
New Revision: 235777
URL: https://gcc.gnu.org/viewcvs?rev=235777&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/pr62314.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog