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++/28606] [4.0/4.1/4.2 regression] Destructor accepted as return-type of constructor



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-08-17 09:19 -------
Subject: Bug 28606

Author: reichelt
Date: Thu Aug 17 09:19:27 2006
New Revision: 116219

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116219
Log:
        PR c++/28606
        * parser.c (cp_parser_diagnose_invalid_type_name): Handle BIT_NOT_EXPR.
        Fix formatting.
        (cp_parser_parse_and_diagnose_invalid_type_name): Tighten condition
        for valid type-names.
        (cp_parser_unqualified_id): Fix error handling for destructors.

        * g++.dg/parse/dtor11.C: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/dtor11.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/parser.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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