public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27359]  New: ICE with missing initialization of iteration variable in parallel for loop
@ 2006-04-29 20:34 reichelt at gcc dot gnu dot org
  2006-04-30  4:07 ` [Bug c++/27359] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-29 20:34 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase crashes the C++ frontend when compiled
with -fopenmp:

==========================
void foo()
{
#pragma omp parallel for
  for (int i; i<1; ++i) ;
}
==========================

bug.cc: In function 'void foo()':
bug.cc:4: internal compiler error: vector VEC(cp_token_position,base) pop
domain error, in cp_lexer_commit_tokens at cp/parser.c:656
Please submit a full bug report, [etc.]


-- 
           Summary: ICE with missing initialization of iteration variable in
                    parallel for loop
           Product: gcc
           Version: 4.2.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=27359


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

* [Bug c++/27359] ICE with missing initialization of iteration variable in parallel for loop
  2006-04-29 20:34 [Bug c++/27359] New: ICE with missing initialization of iteration variable in parallel for loop reichelt at gcc dot gnu dot org
@ 2006-04-30  4:07 ` pinskia at gcc dot gnu dot org
  2006-05-03 12:19 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-30  4:07 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 682 bytes --]



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-30 04:07 -------
Confirmed, works in C99 mode:
pc64:~> ~/newtest/bin/gcc t.c -fopenmp -std=c99
t.c: In function ‘foo’:
t.c:5: error: ‘i’ is not initialized


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-30 04:07:48
               date|                            |


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


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

* [Bug c++/27359] ICE with missing initialization of iteration variable in parallel for loop
  2006-04-29 20:34 [Bug c++/27359] New: ICE with missing initialization of iteration variable in parallel for loop reichelt at gcc dot gnu dot org
  2006-04-30  4:07 ` [Bug c++/27359] " pinskia at gcc dot gnu dot org
@ 2006-05-03 12:19 ` jakub at gcc dot gnu dot org
  2006-05-04  6:29 ` jakub at gcc dot gnu dot org
  2006-05-04  9:35 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-03 12:19 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/2006-
                   |                            |05/msg00115.html
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-04-30 04:07:48         |2006-05-03 12:19:20
               date|                            |


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


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

* [Bug c++/27359] ICE with missing initialization of iteration variable in parallel for loop
  2006-04-29 20:34 [Bug c++/27359] New: ICE with missing initialization of iteration variable in parallel for loop reichelt at gcc dot gnu dot org
  2006-04-30  4:07 ` [Bug c++/27359] " pinskia at gcc dot gnu dot org
  2006-05-03 12:19 ` jakub at gcc dot gnu dot org
@ 2006-05-04  6:29 ` jakub at gcc dot gnu dot org
  2006-05-04  9:35 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-04  6:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2006-05-04 06:29 -------
Subject: Bug 27359

Author: jakub
Date: Thu May  4 06:29:16 2006
New Revision: 113513

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113513
Log:
        PR c++/27359
        * parser.c (cp_parser_omp_for_loop): Only call
        cp_parser_abort_tentative_parse if cp_parser_parse_definitely was not
        called.

        * g++.dg/gomp/pr27359.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr27359.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27359] ICE with missing initialization of iteration variable in parallel for loop
  2006-04-29 20:34 [Bug c++/27359] New: ICE with missing initialization of iteration variable in parallel for loop reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-04  6:29 ` jakub at gcc dot gnu dot org
@ 2006-05-04  9:35 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-04  9:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2006-05-04 09:35 -------
Fixed in SVN.


-- 

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


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

end of thread, other threads:[~2006-05-04  9:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-29 20:34 [Bug c++/27359] New: ICE with missing initialization of iteration variable in parallel for loop reichelt at gcc dot gnu dot org
2006-04-30  4:07 ` [Bug c++/27359] " pinskia at gcc dot gnu dot org
2006-05-03 12:19 ` jakub at gcc dot gnu dot org
2006-05-04  6:29 ` jakub at gcc dot gnu dot org
2006-05-04  9:35 ` 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).