public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/59351] ICE on empty compound literal with -pedantic
       [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
  2013-12-02 17:30 ` [Bug c/59351] ICE on empty compound literal with -pedantic mpolacek at gcc dot gnu.org
@ 2013-12-02 17:30 ` mpolacek at gcc dot gnu.org
  2013-12-03 11:57 ` mpolacek at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-02 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-12-02
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |4.7.4
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.  Even 4.0.2 fails, gcc34 does not.

Mine for now.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/59351] ICE on empty compound literal with -pedantic
       [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
@ 2013-12-02 17:30 ` mpolacek at gcc dot gnu.org
  2013-12-02 17:30 ` mpolacek at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-02 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/59351] ICE on empty compound literal with -pedantic
       [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
  2013-12-02 17:30 ` [Bug c/59351] ICE on empty compound literal with -pedantic mpolacek at gcc dot gnu.org
  2013-12-02 17:30 ` mpolacek at gcc dot gnu.org
@ 2013-12-03 11:57 ` mpolacek at gcc dot gnu.org
  2013-12-03 12:52 ` mpolacek at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-03 11:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Dec  3 11:57:31 2013
New Revision: 205627

URL: http://gcc.gnu.org/viewcvs?rev=205627&root=gcc&view=rev
Log:
    PR c/59351
c/
    * c-decl.c (build_compound_literal): Allow compound literals with
    empty initial value.
testsuite/
    * gcc.dg/pr59351.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr59351.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/59351] ICE on empty compound literal with -pedantic
       [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2013-12-03 11:57 ` mpolacek at gcc dot gnu.org
@ 2013-12-03 12:52 ` mpolacek at gcc dot gnu.org
  2013-12-03 13:52 ` mpolacek at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-03 12:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Dec  3 12:52:39 2013
New Revision: 205629

URL: http://gcc.gnu.org/viewcvs?rev=205629&root=gcc&view=rev
Log:
    PR c/59351
c/
    * c-decl.c (build_compound_literal): Allow compound literals with
    empty initial value.
testsuite/
    * gcc.dg/pr59351.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/pr59351.c
Modified:
    branches/gcc-4_8-branch/gcc/c/ChangeLog
    branches/gcc-4_8-branch/gcc/c/c-decl.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/59351] ICE on empty compound literal with -pedantic
       [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2013-12-03 13:52 ` mpolacek at gcc dot gnu.org
@ 2013-12-03 13:52 ` mpolacek at gcc dot gnu.org
  2013-12-04 15:46 ` ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-03 13:52 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/59351] ICE on empty compound literal with -pedantic
       [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2013-12-03 12:52 ` mpolacek at gcc dot gnu.org
@ 2013-12-03 13:52 ` mpolacek at gcc dot gnu.org
  2013-12-03 13:52 ` mpolacek at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-03 13:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Dec  3 13:52:12 2013
New Revision: 205632

URL: http://gcc.gnu.org/viewcvs?rev=205632&root=gcc&view=rev
Log:
    Backport from mainline
    2013-12-03  Marek Polacek  <polacek@redhat.com>

    PR c/59351
    * c-decl.c (build_compound_literal): Allow compound literals with
    empty initial value.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr59351.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/c-decl.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/59351] ICE on empty compound literal with -pedantic
       [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2013-12-03 13:52 ` mpolacek at gcc dot gnu.org
@ 2013-12-04 15:46 ` ebotcazou at gcc dot gnu.org
  2013-12-04 15:48 ` mpolacek at gcc dot gnu.org
  2013-12-04 15:54 ` mpolacek at gcc dot gnu.org
  8 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-12-04 15:46 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
I have this in my logs on the 4.7 branch:

output is:
xgcc: error: unrecognized command line option '-Wpedantic'

FAIL: gcc.dg/pr59351.c  (test for warnings, line 7)
FAIL: gcc.dg/pr59351.c (test for excess errors)
Excess errors:
xgcc: error: unrecognized command line option '-Wpedantic'


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/59351] ICE on empty compound literal with -pedantic
       [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2013-12-04 15:46 ` ebotcazou at gcc dot gnu.org
@ 2013-12-04 15:48 ` mpolacek at gcc dot gnu.org
  2013-12-04 15:54 ` mpolacek at gcc dot gnu.org
  8 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-04 15:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Ugh, of course, will fix it immediately.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/59351] ICE on empty compound literal with -pedantic
       [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2013-12-04 15:48 ` mpolacek at gcc dot gnu.org
@ 2013-12-04 15:54 ` mpolacek at gcc dot gnu.org
  8 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-04 15:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Dec  4 15:54:48 2013
New Revision: 205673

URL: http://gcc.gnu.org/viewcvs?rev=205673&root=gcc&view=rev
Log:
    PR c/59351
testsuite/
    * gcc.dg/pr59351.c: Use -pedantic instead of -Wpedantic.

Modified:
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr59351.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-12-04 15:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-59351-4@http.gcc.gnu.org/bugzilla/>
2013-12-02 17:30 ` [Bug c/59351] ICE on empty compound literal with -pedantic mpolacek at gcc dot gnu.org
2013-12-02 17:30 ` mpolacek at gcc dot gnu.org
2013-12-03 11:57 ` mpolacek at gcc dot gnu.org
2013-12-03 12:52 ` mpolacek at gcc dot gnu.org
2013-12-03 13:52 ` mpolacek at gcc dot gnu.org
2013-12-03 13:52 ` mpolacek at gcc dot gnu.org
2013-12-04 15:46 ` ebotcazou at gcc dot gnu.org
2013-12-04 15:48 ` mpolacek at gcc dot gnu.org
2013-12-04 15:54 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).