re PR c++/71099 (Misleading diagnostic message with 'virtual' used in out-of-line...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 30 May 2016 15:10:51 +0000 (15:10 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 30 May 2016 15:10:51 +0000 (15:10 +0000)
commita59775a17c7f9933f3d800557eb516a79ebe9bea
treec7c23ee68d8ebf6073ebdc1d427674d032309edb
parent53d6d955606658b7fe0bb9356ad9d7191b61742c
re PR c++/71099 (Misleading diagnostic message with 'virtual' used in out-of-line definitions of class template member functions)

/cp
2016-05-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71099
* parser.c (cp_parser_function_specifier_opt): Use current_class_type
to improve the diagnostic about wrong uses of 'virtual'.

/testsuite
2016-05-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71099
* g++.dg/parse/virtual1.C: New.

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