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/21668] gratuitous warning about "extern const" with initializer



------- Comment #2 from gdr at gcc dot gnu dot org  2005-11-23 07:07 -------
Subject: Bug 21668

Author: gdr
Date: Wed Nov 23 07:07:33 2005
New Revision: 107401

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107401
Log:
        PR c/21668
        * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
        compiling at the intersection of C and C++.

testsuite/
        PR c/21668
        * gcc.dg/Wc++-compat.c: New.
        * gcc.dg/Wno-c++-compat.c: New.

Added:
    trunk/gcc/testsuite/gcc.dg/Wc++-compat.c
    trunk/gcc/testsuite/gcc.dg/Wno-c++-compat.c
Modified:
    trunk/gcc/c-decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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