diff options
author | David Malcolm <dmalcolm@redhat.com> | 2018-08-27 23:33:02 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2018-08-27 23:33:02 +0000 |
commit | bdd039843c2df9c7ab1ebcd914a70208aaa14c23 (patch) | |
tree | 3c85ac088c15309e8f7b0a515cc378c4e9c35970 /gcc/builtins.c | |
parent | 6a2a69287c6cbcfa31cd9dcb13cfdf40cdd29d8e (diff) | |
download | gcc-bdd039843c2df9c7ab1ebcd914a70208aaa14c23.zip gcc-bdd039843c2df9c7ab1ebcd914a70208aaa14c23.tar.gz gcc-bdd039843c2df9c7ab1ebcd914a70208aaa14c23.tar.bz2 |
C++: fix-it hint for missing "typename" (PR c++/63392)
This patch adds a fix-it hint to missing "typename" errors in the C++
frontend, suggesting the insertion of "typename ".
This addresses part of PR c++/63392; however it does not improve the
error-recovery for such cases.
gcc/cp/ChangeLog:
PR c++/63392
* parser.c (cp_parser_diagnose_invalid_type_name): Add fix-it
hint.
gcc/testsuite/ChangeLog:
PR c++/63392
* g++.dg/diagnostic/missing-typename.C: New test.
From-SVN: r263899
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions