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++/38313] g++ fails to parse a member function with a parenthesized type name as its declarator


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38313

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sun Nov  3 23:49:41 2013
New Revision: 204339

URL: http://gcc.gnu.org/viewcvs?rev=204339&root=gcc&view=rev
Log:
/cp
2013-11-03  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/38313
    * parser.c (cp_parser_constructor_declarator_p): Check that the
    class-name matches current_class_type.

/testsuite
2013-11-03  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/38313
    * g++.dg/lookup/name-clash10.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/lookup/name-clash10.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]