public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/35818]  New: ICE on incomplete array in shared clause
@ 2008-04-03 16:58 jakub at gcc dot gnu dot org
  2008-04-03 21:04 ` [Bug middle-end/35818] " jakub at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-03 16:58 UTC (permalink / raw)
  To: gcc-bugs

extern int a[];

void
foo (void)
{
#pragma omp parallel
#pragma omp master
  a[3] = 1;
#pragma omp parallel shared(a)
#pragma omp master
  a[3] = 1;
}
ICEs, because is_variable_sized doesn't expect incomplete types.


-- 
           Summary: ICE on incomplete array in shared clause
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, openmp
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: jakub at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


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

* [Bug middle-end/35818] ICE on incomplete array in shared clause
  2008-04-03 16:58 [Bug middle-end/35818] New: ICE on incomplete array in shared clause jakub at gcc dot gnu dot org
@ 2008-04-03 21:04 ` jakub at gcc dot gnu dot org
  2008-04-03 21:24 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-03 21:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2008-04-03 21:03 -------
Subject: Bug 35818

Author: jakub
Date: Thu Apr  3 21:02:44 2008
New Revision: 133875

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133875
Log:
        PR middle-end/35818
        * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
        call is_variable_sized if decl has incomplete type.

        * gcc.dg/gomp/pr35818.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/gomp/pr35818.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/omp-low.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/35818] ICE on incomplete array in shared clause
  2008-04-03 16:58 [Bug middle-end/35818] New: ICE on incomplete array in shared clause jakub at gcc dot gnu dot org
  2008-04-03 21:04 ` [Bug middle-end/35818] " jakub at gcc dot gnu dot org
@ 2008-04-03 21:24 ` jakub at gcc dot gnu dot org
  2008-04-03 21:26 ` jakub at gcc dot gnu dot org
  2008-04-04  5:52 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-03 21:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2008-04-03 21:23 -------
Subject: Bug 35818

Author: jakub
Date: Thu Apr  3 21:22:41 2008
New Revision: 133878

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133878
Log:
        PR middle-end/35818
        * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
        call is_variable_sized if decl has incomplete type.

        * gcc.dg/gomp/pr35818.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/gomp/pr35818.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/omp-low.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/35818] ICE on incomplete array in shared clause
  2008-04-03 16:58 [Bug middle-end/35818] New: ICE on incomplete array in shared clause jakub at gcc dot gnu dot org
  2008-04-03 21:04 ` [Bug middle-end/35818] " jakub at gcc dot gnu dot org
  2008-04-03 21:24 ` jakub at gcc dot gnu dot org
@ 2008-04-03 21:26 ` jakub at gcc dot gnu dot org
  2008-04-04  5:52 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-03 21:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-04-03 21:25 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/35818] ICE on incomplete array in shared clause
  2008-04-03 16:58 [Bug middle-end/35818] New: ICE on incomplete array in shared clause jakub at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-04-03 21:26 ` jakub at gcc dot gnu dot org
@ 2008-04-04  5:52 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-04-04  5:52 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-04-04  5:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-03 16:58 [Bug middle-end/35818] New: ICE on incomplete array in shared clause jakub at gcc dot gnu dot org
2008-04-03 21:04 ` [Bug middle-end/35818] " jakub at gcc dot gnu dot org
2008-04-03 21:24 ` jakub at gcc dot gnu dot org
2008-04-03 21:26 ` jakub at gcc dot gnu dot org
2008-04-04  5:52 ` pinskia 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).