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++/51427] Less-than-useful error message when union/struct tags conflict


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

--- Comment #3 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-12-06 10:06:55 UTC ---
Author: dodji
Date: Tue Dec  6 10:06:49 2011
New Revision: 182043

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182043
Log:
PR c++/51427 - Better diagnostic when union/struct tags conflicts

gcc/cp/

    PR c++/51427
    * parser.c (cp_parser_check_class_key): Add note about earlier
    declaration.

gcc/testsuite/

    PR c++/51427
    * g++.dg/diagnostic/wrong-tag-1.C

Added:
    trunk/gcc/testsuite/g++.dg/diagnostic/wrong-tag-1.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]