public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/44772] [4.5/4.6 Regression] -Wc++-compat warns incorrectly for anonymous unions
       [not found] <bug-44772-4@http.gcc.gnu.org/bugzilla/>
@ 2010-11-04 17:36 ` jakub at gcc dot gnu.org
  2010-11-05 13:32 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-04 17:36 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.11.04 17:36:14
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.5.2
            Summary|-Wc++-compat warns          |[4.5/4.6 Regression]
                   |incorrectly for anonymous   |-Wc++-compat warns
                   |unions [regression from     |incorrectly for anonymous
                   |4.4]                        |unions
     Ever Confirmed|0                           |1


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

* [Bug c/44772] [4.5/4.6 Regression] -Wc++-compat warns incorrectly for anonymous unions
       [not found] <bug-44772-4@http.gcc.gnu.org/bugzilla/>
  2010-11-04 17:36 ` [Bug c/44772] [4.5/4.6 Regression] -Wc++-compat warns incorrectly for anonymous unions jakub at gcc dot gnu.org
@ 2010-11-05 13:32 ` jakub at gcc dot gnu.org
  2010-11-05 13:53 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-05 13:32 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |


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

* [Bug c/44772] [4.5/4.6 Regression] -Wc++-compat warns incorrectly for anonymous unions
       [not found] <bug-44772-4@http.gcc.gnu.org/bugzilla/>
  2010-11-04 17:36 ` [Bug c/44772] [4.5/4.6 Regression] -Wc++-compat warns incorrectly for anonymous unions jakub at gcc dot gnu.org
  2010-11-05 13:32 ` jakub at gcc dot gnu.org
@ 2010-11-05 13:53 ` jakub at gcc dot gnu.org
  2010-11-06  0:08 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-05 13:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-05 13:53:26 UTC ---
Created attachment 22292
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22292
gcc46-pr44472.patch

Untested fix.


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

* [Bug c/44772] [4.5/4.6 Regression] -Wc++-compat warns incorrectly for anonymous unions
       [not found] <bug-44772-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2010-11-05 13:53 ` jakub at gcc dot gnu.org
@ 2010-11-06  0:08 ` jakub at gcc dot gnu.org
  2010-11-06  0:10 ` [Bug c/44772] [4.5 " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-06  0:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-06 00:07:55 UTC ---
Author: jakub
Date: Sat Nov  6 00:07:50 2010
New Revision: 166384

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166384
Log:
    PR c/44772
    * c-decl.c (warn_cxx_compat_finish_struct): Don't call
    pointer_set_contains if DECL_NAME is NULL.

    * gcc.dg/Wcxx-compat-21.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/Wcxx-compat-21.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c/44772] [4.5 Regression] -Wc++-compat warns incorrectly for anonymous unions
       [not found] <bug-44772-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2010-11-06  0:08 ` jakub at gcc dot gnu.org
@ 2010-11-06  0:10 ` jakub at gcc dot gnu.org
  2010-11-07 23:18 ` ml-gnu-dale at riyescott dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-06  0:10 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.5/4.6 Regression]        |[4.5 Regression]
                   |-Wc++-compat warns          |-Wc++-compat warns
                   |incorrectly for anonymous   |incorrectly for anonymous
                   |unions                      |unions

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-06 00:10:05 UTC ---
Fixed on the trunk so far.


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

* [Bug c/44772] [4.5 Regression] -Wc++-compat warns incorrectly for anonymous unions
       [not found] <bug-44772-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2010-11-06  0:10 ` [Bug c/44772] [4.5 " jakub at gcc dot gnu.org
@ 2010-11-07 23:18 ` ml-gnu-dale at riyescott dot com
  2010-11-11 20:40 ` jakub at gcc dot gnu.org
  2010-11-11 22:13 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: ml-gnu-dale at riyescott dot com @ 2010-11-07 23:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Dale Stimson <ml-gnu-dale at riyescott dot com> 2010-11-07 23:18:23 UTC ---
Created attachment 22317
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22317
Backport of Jakub's patch from 4.6 trunk to 4.5.1.

The attached patch for gcc 4.5.1 is provided in case it is useful to any one...

Thanks to Jakub for solving this problem.  This attachment is derived from
Jakub's patch by backporting to 4.5.1 (as obtained from the presumably pristine
Fedora gcc file gcc-4.5.1-20100924.tar.bz2 from Fedora's
gcc-4.5.1-4.fc14.src.rpm).

I have lightly tested this.  It "works for me".


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

* [Bug c/44772] [4.5 Regression] -Wc++-compat warns incorrectly for anonymous unions
       [not found] <bug-44772-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2010-11-07 23:18 ` ml-gnu-dale at riyescott dot com
@ 2010-11-11 20:40 ` jakub at gcc dot gnu.org
  2010-11-11 22:13 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-11 20:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-11 20:40:36 UTC ---
Author: jakub
Date: Thu Nov 11 20:40:32 2010
New Revision: 166620

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166620
Log:
    Backport from mainline
    2010-11-05  Jakub Jelinek  <jakub@redhat.com>

    PR c/44772
    * c-decl.c (warn_cxx_compat_finish_struct): Don't call
    pointer_set_contains if DECL_NAME is NULL.

    * gcc.dg/Wcxx-compat-21.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/Wcxx-compat-21.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/c-decl.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


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

* [Bug c/44772] [4.5 Regression] -Wc++-compat warns incorrectly for anonymous unions
       [not found] <bug-44772-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2010-11-11 20:40 ` jakub at gcc dot gnu.org
@ 2010-11-11 22:13 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-11 22:13 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-11 22:13:25 UTC ---
Fixed.


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

end of thread, other threads:[~2010-11-11 22:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44772-4@http.gcc.gnu.org/bugzilla/>
2010-11-04 17:36 ` [Bug c/44772] [4.5/4.6 Regression] -Wc++-compat warns incorrectly for anonymous unions jakub at gcc dot gnu.org
2010-11-05 13:32 ` jakub at gcc dot gnu.org
2010-11-05 13:53 ` jakub at gcc dot gnu.org
2010-11-06  0:08 ` jakub at gcc dot gnu.org
2010-11-06  0:10 ` [Bug c/44772] [4.5 " jakub at gcc dot gnu.org
2010-11-07 23:18 ` ml-gnu-dale at riyescott dot com
2010-11-11 20:40 ` jakub at gcc dot gnu.org
2010-11-11 22:13 ` jakub 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).