public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/59073] New: [4.9 Regression] ICE with missing increment in OpenMP for-loop
@ 2013-11-10 21:51 reichelt at gcc dot gnu.org
  2013-11-10 21:52 ` [Bug c/59073] " reichelt at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-11-10 21:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59073
           Summary: [4.9 Regression] ICE with missing increment in OpenMP
                    for-loop
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org

The following invalid code snippet (compiled with "-fopenmp") triggers an ICE
on trunk:

==========================================
void foo()
{
  int i; 
#pragma omp distribute parallel for
  for (i = 0; i < 10; i) ;
}
==========================================

bug.c: In function 'foo':
bug.c:5:23: error: invalid increment expression
   for (i = 0; i < 10; i) ;
                       ^
bug.c:4:9: internal compiler error: in gimplify_omp_for, at gimplify.c:6899
 #pragma omp distribute parallel for
         ^
0x7ecf0e gimplify_omp_for
        ../../gcc/gcc/gimplify.c:6899
0x7d9281 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:8188
0x7dd856 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gcc/gimplify.c:5657
0x7d9e73 gimplify_statement_list
        ../../gcc/gcc/gimplify.c:1548
0x7d9e73 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:8144
0x7dd856 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gcc/gimplify.c:5657
0x7de5b4 gimplify_bind_expr
        ../../gcc/gcc/gimplify.c:1229
0x7da201 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7926
0x7dd856 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gcc/gimplify.c:5657
0x7def5e gimplify_body(tree_node*, bool)
        ../../gcc/gcc/gimplify.c:8836
0x7df4b6 gimplify_function_tree(tree_node*)
        ../../gcc/gcc/gimplify.c:8974
0x674d17 analyze_function
        ../../gcc/gcc/cgraphunit.c:638
0x676024 analyze_functions
        ../../gcc/gcc/cgraphunit.c:1005
0x677535 finalize_compilation_unit()
        ../../gcc/gcc/cgraphunit.c:2263
0x53ef53 c_write_global_declarations()
        ../../gcc/gcc/c/c-decl.c:10287
Please submit a full bug report, [etc.]

The regression appeared between 4.9.0 20131005 and 4.9.0 20131012.


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

end of thread, other threads:[~2014-04-22 16:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-10 21:51 [Bug c/59073] New: [4.9 Regression] ICE with missing increment in OpenMP for-loop reichelt at gcc dot gnu.org
2013-11-10 21:52 ` [Bug c/59073] " reichelt at gcc dot gnu.org
2013-11-11 14:48 ` burnus at gcc dot gnu.org
2013-11-13  8:02 ` burnus at gcc dot gnu.org
2013-11-19  9:48 ` rguenth at gcc dot gnu.org
2013-11-19 15:08 ` rguenth at gcc dot gnu.org
2014-04-09  5:37 ` asolokha at gmx dot com
2014-04-22 11:37 ` [Bug c/59073] [4.9/4.10 " jakub at gcc dot gnu.org
2014-04-22 16:23 ` jakub at gcc dot gnu.org
2014-04-22 16:26 ` jakub at gcc dot gnu.org
2014-04-22 16:37 ` 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).