public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr)
@ 2011-10-17  9:14 gjl at gcc dot gnu.org
  2011-10-17  9:55 ` [Bug c++/50755] " paolo.carlini at oracle dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-10-17  9:14 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50755
           Summary: [ICE]: tree check: expected class 'constant', have
                    'unary' (convert_expr)
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gjl@gcc.gnu.org
                CC: jason@gcc.gnu.org
            Target: avr
             Build: x86-pc-linux-gnu


Following test case runs into ICE with trunk r180076:

avr-g++ -v ./gcc/testsuite/g++.dg/template/constant2.C  -S -mmcu=atmega128  -o
constant2.s

Using built-in specs.

Configured with: ../../gcc.gnu.org/trunk/configure --target=avr
--prefix=/local/gnu/install/gcc-4.7 --disable-nls --disable-shared
--enable-languages=c,c++ --with-dwarf2 --disable-lto --enable-checking=yes,rtl
Thread model: single
gcc version 4.7.0 20111017 (experimental) (GCC)

GNU C++ (GCC) version 4.7.0 20111017 (experimental) (avr)
        compiled by GNU C version 4.3.2 [gcc-4_3-branch revision 141291], GMP
version 5.0.1, MPFR version 3.0.0-p8, MPC version 0.8.2

./gcc/testsuite/g++.dg/template/constant2.C:6:35: internal compiler error: tree
check: expected class 'constant', have 'unary' (convert_expr) in
warnings_for_convert_and_check, at c-family/c-common.c:2211


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

* [Bug c++/50755] [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr)
  2011-10-17  9:14 [Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr) gjl at gcc dot gnu.org
@ 2011-10-17  9:55 ` paolo.carlini at oracle dot com
  2011-10-17 11:44 ` gjl at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-17  9:55 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011-10-17
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-17 09:55:35 UTC ---
Testcase missing.


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

* [Bug c++/50755] [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr)
  2011-10-17  9:14 [Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr) gjl at gcc dot gnu.org
  2011-10-17  9:55 ` [Bug c++/50755] " paolo.carlini at oracle dot com
@ 2011-10-17 11:44 ` gjl at gcc dot gnu.org
  2011-10-17 14:24 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-10-17 11:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-10-17 11:44:15 UTC ---
Created attachment 25519
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25519
./gcc/testsuite/g++.dg/template/constant2.C

It is the testcase from the GCC source tree:

./gcc/testsuite/g++.dg/template/constant2.C

added by Jason in r179813:

http://gcc.gnu.org/viewcvs?view=revision&revision=179813


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

* [Bug c++/50755] [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr)
  2011-10-17  9:14 [Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr) gjl at gcc dot gnu.org
  2011-10-17  9:55 ` [Bug c++/50755] " paolo.carlini at oracle dot com
  2011-10-17 11:44 ` gjl at gcc dot gnu.org
@ 2011-10-17 14:24 ` paolo.carlini at oracle dot com
  2023-11-03 20:25 ` [Bug c++/50755] [avr] ICE: " roger at nextmovesoftware dot com
  2023-11-06 15:37 ` gjl at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-17 14:24 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-17 14:23:51 UTC ---
Oops, sorry I didn't notice it's already in the testsuite, failing for this
target.


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

* [Bug c++/50755] [avr] ICE: tree check: expected class 'constant', have 'unary' (convert_expr)
  2011-10-17  9:14 [Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr) gjl at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-10-17 14:24 ` paolo.carlini at oracle dot com
@ 2023-11-03 20:25 ` roger at nextmovesoftware dot com
  2023-11-06 15:37 ` gjl at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: roger at nextmovesoftware dot com @ 2023-11-03 20:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50755

Roger Sayle <roger at nextmovesoftware dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at nextmovesoftware dot com

--- Comment #4 from Roger Sayle <roger at nextmovesoftware dot com> ---
This appears to be fixed on mainline.  G-J can you confirm this is resolved?

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

* [Bug c++/50755] [avr] ICE: tree check: expected class 'constant', have 'unary' (convert_expr)
  2011-10-17  9:14 [Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr) gjl at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2023-11-03 20:25 ` [Bug c++/50755] [avr] ICE: " roger at nextmovesoftware dot com
@ 2023-11-06 15:37 ` gjl at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2023-11-06 15:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50755

--- Comment #5 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to Roger Sayle from comment #4)
> This appears to be fixed on mainline.

At least the test case passes on newer versions.  For a definite answer you'd
have to bisect / find the patch that solved it.

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

end of thread, other threads:[~2023-11-06 15:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-17  9:14 [Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr) gjl at gcc dot gnu.org
2011-10-17  9:55 ` [Bug c++/50755] " paolo.carlini at oracle dot com
2011-10-17 11:44 ` gjl at gcc dot gnu.org
2011-10-17 14:24 ` paolo.carlini at oracle dot com
2023-11-03 20:25 ` [Bug c++/50755] [avr] ICE: " roger at nextmovesoftware dot com
2023-11-06 15:37 ` gjl 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).