[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293 Andrew Pinski changed: What|Removed |Added CC||ktkachov at gcc dot gnu.org --- Comment #9 from Andrew Pinski --- *** Bug 70749 has been marked as a duplicate of this bug. ***
[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293 Andrew Pinski changed: What|Removed |Added CC||hristo at venev dot name --- Comment #8 from Andrew Pinski --- *** Bug 63878 has been marked as a duplicate of this bug. ***
[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |6.0
[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293 Eric Gallager changed: What|Removed |Added Status|NEW |RESOLVED CC||egallager at gcc dot gnu.org Resolution|--- |FIXED --- Comment #7 from Eric Gallager --- (In reply to prathamesh3492 from comment #6) > Fixed on trunk. Closing as FIXED then.
[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293 --- Comment #5 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Wed Jan 20 16:25:23 2016 New Revision: 232622 URL: https://gcc.gnu.org/viewcvs?rev=232622=gcc=rev Log: 2016-01-15 Prathamesh KulkarniPR c/24293 * c-tree.h (incomplete_record_decls): Declare. * c-parser.c (incomplete_record_decls): Define. (c_parser_translation_unit): Iterate through incomplete_record_decls and report error if any decl has zero size. * c-decl.c (finish_decl): Append static decl with incomplete struct/union or enum type to incomplete_record_decls. testsuite/ * gcc.dg/pr24293.c: New test. * gcc.dg/Wcxx-compat-8.c: Adjust to accept error due to incomplete struct type. * gcc.dg/declspec-1.c: Likewise. * gcc.dg/pr63549.c: Likewise. Added: trunk/gcc/testsuite/gcc.dg/pr24293.c Modified: trunk/gcc/c/ChangeLog trunk/gcc/c/c-decl.c trunk/gcc/c/c-parser.c trunk/gcc/c/c-tree.h trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/Wcxx-compat-8.c trunk/gcc/testsuite/gcc.dg/declspec-1.c trunk/gcc/testsuite/gcc.dg/pr63549.c
[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc dot gnu.org --- Comment #6 from prathamesh3492 at gcc dot gnu.org --- Fixed on trunk.
[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Known to fail|| --- Comment #4 from Andrew Pinski pinskia at gcc dot gnu.org --- (In reply to Manuel López-Ibáñez from comment #3) Sorry for my ignorance, what is syntactically wrong with that? It is semantically incorrect and not syntactically incorrect. Basically -fsyntax-only includes most of the semantics analysis, why not this one too.
[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
--- Comment #3 from manu at gcc dot gnu dot org 2007-01-26 02:47 --- Sorry for my ignorance, what is syntactically wrong with that? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293
[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-12 19:44 --- I should note that the diagnostic is produced in varasm.c while it really should be produced in the front-end. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293
[Bug c/24293] Undefined behaviour not diagnosed with -fsyntax-only
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-10 01:53 --- Confirmed, not a regression. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords||diagnostic Known to fail||2.95.3 3.0.4 3.2.2 3.2.3 ||3.3.1 4.0.0 3.4.0 4.1.0 Last reconfirmed|-00-00 00:00:00 |2005-10-10 01:53:18 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24293