public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30536]  New: [4.1/4.2/4.3 regression] ICE with __thread and register
@ 2007-01-21 23:57 reichelt at gcc dot gnu dot org
  2007-01-21 23:57 ` [Bug c++/30536] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-01-21 23:57 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.1.0:

========================================
struct A { __thread register int i; };
========================================

bug.cc:1: error: multiple storage classes in declaration of 'i'
bug.cc:1: internal compiler error: tree check: expected tree that contains
'decl with RTL' structure, have 'field_decl'  in grokdeclarator, at
cp/decl.c:8699
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2/4.3 regression] ICE with __thread and register
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/30536] [4.1/4.2/4.3 regression] ICE with __thread and register
  2007-01-21 23:57 [Bug c++/30536] New: [4.1/4.2/4.3 regression] ICE with __thread and register reichelt at gcc dot gnu dot org
@ 2007-01-21 23:57 ` reichelt at gcc dot gnu dot org
  2007-02-01 12:22 ` jakub at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-01-21 23:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.2


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


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

* [Bug c++/30536] [4.1/4.2/4.3 regression] ICE with __thread and register
  2007-01-21 23:57 [Bug c++/30536] New: [4.1/4.2/4.3 regression] ICE with __thread and register reichelt at gcc dot gnu dot org
  2007-01-21 23:57 ` [Bug c++/30536] " reichelt at gcc dot gnu dot org
@ 2007-02-01 12:22 ` jakub at gcc dot gnu dot org
  2007-02-02 12:23 ` jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-02-01 12:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2007-
                   |                            |02/msg00040.html
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-01 12:22:38
               date|                            |


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


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

* [Bug c++/30536] [4.1/4.2/4.3 regression] ICE with __thread and register
  2007-01-21 23:57 [Bug c++/30536] New: [4.1/4.2/4.3 regression] ICE with __thread and register reichelt at gcc dot gnu dot org
  2007-01-21 23:57 ` [Bug c++/30536] " reichelt at gcc dot gnu dot org
  2007-02-01 12:22 ` jakub at gcc dot gnu dot org
@ 2007-02-02 12:23 ` jakub at gcc dot gnu dot org
  2007-02-02 15:24 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-02-02 12:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2007-02-02 12:23 -------
Subject: Bug 30536

Author: jakub
Date: Fri Feb  2 12:23:18 2007
New Revision: 121496

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121496
Log:
        PR c++/30536
        * decl.c (grokdeclarator): If __thread is used together with
        a storage class other than extern and static, clear thread_p
        after issuing diagnostics and fall through to checking the
        storage class.

        * g++.dg/tls/diag-5.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/tls/diag-5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/30536] [4.1/4.2/4.3 regression] ICE with __thread and register
  2007-01-21 23:57 [Bug c++/30536] New: [4.1/4.2/4.3 regression] ICE with __thread and register reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-02-02 12:23 ` jakub at gcc dot gnu dot org
@ 2007-02-02 15:24 ` jakub at gcc dot gnu dot org
  2007-02-05  5:55 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-02-02 15:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2007-02-02 15:24 -------
Subject: Bug 30536

Author: jakub
Date: Fri Feb  2 15:23:58 2007
New Revision: 121505

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121505
Log:
        PR c++/30536
        * decl.c (grokdeclarator): If __thread is used together with
        a storage class other than extern and static, clear thread_p
        after issuing diagnostics and fall through to checking the
        storage class.

        * g++.dg/tls/diag-5.C: New test.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/tls/diag-5.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/decl.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/30536] [4.1/4.2/4.3 regression] ICE with __thread and register
  2007-01-21 23:57 [Bug c++/30536] New: [4.1/4.2/4.3 regression] ICE with __thread and register reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-02-02 15:24 ` jakub at gcc dot gnu dot org
@ 2007-02-05  5:55 ` mmitchel at gcc dot gnu dot org
  2007-02-14  9:32 ` [Bug c++/30536] [4.1 " mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-05  5:55 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/30536] [4.1 regression] ICE with __thread and register
  2007-01-21 23:57 [Bug c++/30536] New: [4.1/4.2/4.3 regression] ICE with __thread and register reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-02-05  5:55 ` mmitchel at gcc dot gnu dot org
@ 2007-02-14  9:32 ` mmitchel at gcc dot gnu dot org
  2007-02-14 20:35 ` jakub at gcc dot gnu dot org
  2007-02-27 16:26 ` jakub at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.2                       |4.1.3


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


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

* [Bug c++/30536] [4.1 regression] ICE with __thread and register
  2007-01-21 23:57 [Bug c++/30536] New: [4.1/4.2/4.3 regression] ICE with __thread and register reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-02-14  9:32 ` [Bug c++/30536] [4.1 " mmitchel at gcc dot gnu dot org
@ 2007-02-14 20:35 ` jakub at gcc dot gnu dot org
  2007-02-27 16:26 ` jakub at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-02-14 20:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2007-02-14 20:35 -------
Subject: Bug 30536

Author: jakub
Date: Wed Feb 14 20:35:19 2007
New Revision: 121962

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121962
Log:
        PR c++/30536
        * decl.c (grokdeclarator): If __thread is used together with
        a storage class other than extern and static, clear thread_p
        after issuing diagnostics and fall through to checking the
        storage class.

        * g++.dg/tls/diag-5.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/tls/diag-5.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/decl.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/30536] [4.1 regression] ICE with __thread and register
  2007-01-21 23:57 [Bug c++/30536] New: [4.1/4.2/4.3 regression] ICE with __thread and register reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-02-14 20:35 ` jakub at gcc dot gnu dot org
@ 2007-02-27 16:26 ` jakub at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-02-27 16:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2007-02-27 16:26 -------
Fixed on 4.1 branch as well.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-02-27 16:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-21 23:57 [Bug c++/30536] New: [4.1/4.2/4.3 regression] ICE with __thread and register reichelt at gcc dot gnu dot org
2007-01-21 23:57 ` [Bug c++/30536] " reichelt at gcc dot gnu dot org
2007-02-01 12:22 ` jakub at gcc dot gnu dot org
2007-02-02 12:23 ` jakub at gcc dot gnu dot org
2007-02-02 15:24 ` jakub at gcc dot gnu dot org
2007-02-05  5:55 ` mmitchel at gcc dot gnu dot org
2007-02-14  9:32 ` [Bug c++/30536] [4.1 " mmitchel at gcc dot gnu dot org
2007-02-14 20:35 ` jakub at gcc dot gnu dot org
2007-02-27 16:26 ` jakub at gcc dot gnu dot 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).