public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/57577] New: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123
@ 2013-06-10 14:01 anna.m.tikhonova at gmail dot com
  2013-06-10 14:04 ` [Bug middle-end/57577] " anna.m.tikhonova at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: anna.m.tikhonova at gmail dot com @ 2013-06-10 14:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57577
           Summary: internal compiler error: tree check: expected class
                    'expression', have 'constant' (integer_cst) in
                    tree_operand_check, at tree.h:4123
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anna.m.tikhonova at gmail dot com

Created attachment 30284
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30284&action=edit
Reproducer

Hi,
attached test case fails with ICE:

$ gcc -fcilkplus 1.c
1.c: In function 'main':
1.c:7:1: internal compiler error: tree check: expected class 'expression', have
'constant' (integer_cst) in tree_operand_check, at tree.h:4123
 }
 ^
0xae7d99 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        /home/anna/trunk/gcc/tree.c:9110
0x4c3cef expr_check
        /home/anna/trunk/gcc/tree.h:3859
0x4c3cef tree_operand_check
        /home/anna/trunk/gcc/tree.h:4123
0x531755 tree_operand_check(tree_node*, int, char const*, int, char const*)
        /home/anna/trunk/gcc/tree.h:4111
0x55255d build_array_notation_expr(unsigned int, tree_node*, tree_node*,
tree_code, unsigned int, tree_node*, tree_node*)
        /home/anna/trunk/gcc/c/c-array-notation.c:1264
0x555cf8 expand_array_notation_exprs(tree_node*)
        /home/anna/trunk/gcc/c/c-array-notation.c:2777
0x555b90 expand_array_notation_exprs(tree_node*)
        /home/anna/trunk/gcc/c/c-array-notation.c:2765
0x5438f3 c_parser_compound_statement
        /home/anna/trunk/gcc/c/c-parser.c:4098
0x5447aa c_parser_declaration_or_fndef
        /home/anna/trunk/gcc/c/c-parser.c:1758
0x54958b c_parser_external_declaration
        /home/anna/trunk/gcc/c/c-parser.c:1363
0x549ff6 c_parser_translation_unit
        /home/anna/trunk/gcc/c/c-parser.c:1251
0x549ff6 c_parse_file()
        /home/anna/trunk/gcc/c/c-parser.c:11000
0x59c954 c_common_parse_file()
        /home/anna/trunk/gcc/c-family/c-opts.c:1046
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Compiler used is:
Target: x86_64-unknown-linux-gnu
Configured with: /home/anna/trunk/configure --with-arch=corei7
--with-cpu=corei7 --enable-clocale=gnu --with-system-zlib --enable-shared
--with-demangler-in-ld --enable-cloog-backend=isl --with-fpmath=sse
--enable-languages=c,c++,fortran,java,lto
Thread model: posix
gcc version 4.9.0 20130608 (experimental) (GCC)


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

* [Bug middle-end/57577] internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123
  2013-06-10 14:01 [Bug middle-end/57577] New: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123 anna.m.tikhonova at gmail dot com
@ 2013-06-10 14:04 ` anna.m.tikhonova at gmail dot com
  2014-01-10 15:28 ` [Bug c/57577] " mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: anna.m.tikhonova at gmail dot com @ 2013-06-10 14:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Anna <anna.m.tikhonova at gmail dot com> ---
Also, when I change "A[:] = foo (B[:][:]);" to "A[0] = foo (B[:][:]);"
compilation hangs.


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

* [Bug c/57577] internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123
  2013-06-10 14:01 [Bug middle-end/57577] New: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123 anna.m.tikhonova at gmail dot com
  2013-06-10 14:04 ` [Bug middle-end/57577] " anna.m.tikhonova at gmail dot com
@ 2014-01-10 15:28 ` mpolacek at gcc dot gnu.org
  2014-01-10 15:44 ` hjl.tools at gmail dot com
  2014-01-10 15:53 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-01-10 15:28 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This has been fixed (199971 still ICEs, but 200471 is ok).


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

* [Bug c/57577] internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123
  2013-06-10 14:01 [Bug middle-end/57577] New: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123 anna.m.tikhonova at gmail dot com
  2013-06-10 14:04 ` [Bug middle-end/57577] " anna.m.tikhonova at gmail dot com
  2014-01-10 15:28 ` [Bug c/57577] " mpolacek at gcc dot gnu.org
@ 2014-01-10 15:44 ` hjl.tools at gmail dot com
  2014-01-10 15:53 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-10 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Marek Polacek from comment #2)
> This has been fixed (199971 still ICEs, but 200471 is ok).

Shouldn't we add the testcase?


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

* [Bug c/57577] internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123
  2013-06-10 14:01 [Bug middle-end/57577] New: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123 anna.m.tikhonova at gmail dot com
                   ` (2 preceding siblings ...)
  2014-01-10 15:44 ` hjl.tools at gmail dot com
@ 2014-01-10 15:53 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-01-10 15:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #3)
> Shouldn't we add the testcase?

We already have one: c-c++-common/cilk-plus/AN/pr57577.c


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

end of thread, other threads:[~2014-01-10 15:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-10 14:01 [Bug middle-end/57577] New: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123 anna.m.tikhonova at gmail dot com
2013-06-10 14:04 ` [Bug middle-end/57577] " anna.m.tikhonova at gmail dot com
2014-01-10 15:28 ` [Bug c/57577] " mpolacek at gcc dot gnu.org
2014-01-10 15:44 ` hjl.tools at gmail dot com
2014-01-10 15:53 ` mpolacek 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).