This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71099] Misleading diagnostic message with 'virtual' used in out-of-line definitions of class template member functions


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71099

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon May 30 15:10:51 2016
New Revision: 236885

URL: https://gcc.gnu.org/viewcvs?rev=236885&root=gcc&view=rev
Log:
/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.

Added:
    trunk/gcc/testsuite/g++.dg/parse/virtual1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]