public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35438]  New: ICE with invalid use of threadprivate
@ 2008-03-03 21:07 reichelt at gcc dot gnu dot org
  2008-03-10 15:07 ` [Bug c/35438] " jakub at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-03 21:07 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.2.0 when
compiled with "-fopenmp":

================================
void foo();
#pragma omp threadprivate(foo)
================================

bug.c:2: internal compiler error: tree check: expected var_decl, have
function_decl in c_parser_omp_threadprivate, at c-parser.c:7975
Please submit a full bug report, [etc.]


-- 
           Summary: ICE with invalid use of threadprivate
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored, openmp
          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=35438


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

* [Bug c/35438] ICE with invalid use of threadprivate
  2008-03-03 21:07 [Bug c/35438] New: ICE with invalid use of threadprivate reichelt at gcc dot gnu dot org
@ 2008-03-10 15:07 ` jakub at gcc dot gnu dot org
  2008-03-10 19:42 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 15:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2008-03-10 15:07 -------
Testing a fix.


-- 

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                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-10 15:07:07
               date|                            |


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


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

* [Bug c/35438] ICE with invalid use of threadprivate
  2008-03-03 21:07 [Bug c/35438] New: ICE with invalid use of threadprivate reichelt at gcc dot gnu dot org
  2008-03-10 15:07 ` [Bug c/35438] " jakub at gcc dot gnu dot org
@ 2008-03-10 19:42 ` jakub at gcc dot gnu dot org
  2008-03-10 20:54 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 19:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2008-03-10 19:41 -------
Subject: Bug 35438

Author: jakub
Date: Mon Mar 10 19:40:39 2008
New Revision: 133085

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133085
Log:
        PR c/35438
        PR c/35439
        * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
        errorneous type.  Check that v is a VAR_DECL.

        * gcc.dg/gomp/pr35438.c: New test.
        * gcc.dg/gomp/pr35439.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/gomp/pr35438.c
    trunk/gcc/testsuite/gcc.dg/gomp/pr35439.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/35438] ICE with invalid use of threadprivate
  2008-03-03 21:07 [Bug c/35438] New: ICE with invalid use of threadprivate reichelt at gcc dot gnu dot org
  2008-03-10 15:07 ` [Bug c/35438] " jakub at gcc dot gnu dot org
  2008-03-10 19:42 ` jakub at gcc dot gnu dot org
@ 2008-03-10 20:54 ` jakub at gcc dot gnu dot org
  2008-03-10 20:58 ` jakub at gcc dot gnu dot org
  2008-03-13  8:15 ` reichelt at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 20:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-03-10 20:53 -------
Subject: Bug 35438

Author: jakub
Date: Mon Mar 10 20:52:28 2008
New Revision: 133089

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133089
Log:
        PR c/35438
        PR c/35439
        * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
        errorneous type.  Check that v is a VAR_DECL.

        * gcc.dg/gomp/pr35438.c: New test.
        * gcc.dg/gomp/pr35439.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/gomp/pr35438.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/gomp/pr35439.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/c-parser.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/35438] ICE with invalid use of threadprivate
  2008-03-03 21:07 [Bug c/35438] New: ICE with invalid use of threadprivate reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-03-10 20:54 ` jakub at gcc dot gnu dot org
@ 2008-03-10 20:58 ` jakub at gcc dot gnu dot org
  2008-03-13  8:15 ` reichelt at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 20:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-03-10 20:57 -------
Fixed.


-- 

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=35438


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

* [Bug c/35438] ICE with invalid use of threadprivate
  2008-03-03 21:07 [Bug c/35438] New: ICE with invalid use of threadprivate reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-03-10 20:58 ` jakub at gcc dot gnu dot org
@ 2008-03-13  8:15 ` reichelt at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-13  8:15 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.1


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


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

end of thread, other threads:[~2008-03-13  8:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 21:07 [Bug c/35438] New: ICE with invalid use of threadprivate reichelt at gcc dot gnu dot org
2008-03-10 15:07 ` [Bug c/35438] " jakub at gcc dot gnu dot org
2008-03-10 19:42 ` jakub at gcc dot gnu dot org
2008-03-10 20:54 ` jakub at gcc dot gnu dot org
2008-03-10 20:58 ` jakub at gcc dot gnu dot org
2008-03-13  8:15 ` reichelt 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).