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/81795] Stray "originally defined here" when using -Wc++-compat with #pragma GCC diagnostic push/pop


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Aug 11 18:02:18 2017
New Revision: 251056

URL: https://gcc.gnu.org/viewcvs?rev=251056&root=gcc&view=rev
Log:
        PR c/81795
        * c-decl.c (pushtag): Only print inform if the warning was printed.
        (grokdeclarator): Likewise.

        * gcc.dg/pr81795.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr81795.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.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]