public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45049]  New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160
@ 2010-07-23 22:57 zsojka at seznam dot cz
  2010-07-23 22:59 ` [Bug c++/45049] " zsojka at seznam dot cz
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2010-07-23 22:57 UTC (permalink / raw)
  To: gcc-bugs

Command line:
$ g++ testcase.C

Compiler output:
$ g++ testcase.C 
testcase.C: In function 'void max()':
testcase.C:14:13: internal compiler error: tree check: expected tree that
contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at
cp/name-lookup.c:2160
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r162456 - crash
r162269 - crash
r162222 - OK


-- 
           Summary: [4.6 Regression] ICE: tree check: expected tree that
                    contains 'decl minimal' structure, have 'tree_list' in
                    push_overloaded_decl, at cp/name-lookup.c:2160
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz


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


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

* [Bug c++/45049] [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160
  2010-07-23 22:57 [Bug c++/45049] New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160 zsojka at seznam dot cz
@ 2010-07-23 22:59 ` zsojka at seznam dot cz
  2010-07-23 23:44 ` hjl dot tools at gmail dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2010-07-23 22:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from zsojka at seznam dot cz  2010-07-23 22:58 -------
Created an attachment (id=21294)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21294&action=view)
reduced testcase (from boost sources)


-- 


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


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

* [Bug c++/45049] [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160
  2010-07-23 22:57 [Bug c++/45049] New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160 zsojka at seznam dot cz
  2010-07-23 22:59 ` [Bug c++/45049] " zsojka at seznam dot cz
@ 2010-07-23 23:44 ` hjl dot tools at gmail dot com
  2010-07-24  0:40 ` hjl dot tools at gmail dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-07-23 23:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2010-07-23 23:43 -------
It was introduced between revision 162222 and 162255.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-23 23:43:46
               date|                            |


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


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

* [Bug c++/45049] [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160
  2010-07-23 22:57 [Bug c++/45049] New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160 zsojka at seznam dot cz
  2010-07-23 22:59 ` [Bug c++/45049] " zsojka at seznam dot cz
  2010-07-23 23:44 ` hjl dot tools at gmail dot com
@ 2010-07-24  0:40 ` hjl dot tools at gmail dot com
  2010-08-12 23:30 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-07-24  0:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl dot tools at gmail dot com  2010-07-24 00:40 -------
This is caused by revision 162223:

http://gcc.gnu.org/ml/gcc-cvs/2010-07/msg00577.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.0


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


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

* [Bug c++/45049] [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160
  2010-07-23 22:57 [Bug c++/45049] New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160 zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-07-24  0:40 ` hjl dot tools at gmail dot com
@ 2010-08-12 23:30 ` pinskia at gcc dot gnu dot org
  2010-08-17 10:55 ` zsojka at seznam dot cz
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-08-12 23:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2010-08-12 23:30 -------
This is one case where we can have either DECLs or TREE_LISTs


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major
           Keywords|                            |ice-checking


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


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

* [Bug c++/45049] [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160
  2010-07-23 22:57 [Bug c++/45049] New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160 zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2010-08-12 23:30 ` pinskia at gcc dot gnu dot org
@ 2010-08-17 10:55 ` zsojka at seznam dot cz
  2010-08-18 12:32 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2010-08-17 10:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from zsojka at seznam dot cz  2010-08-17 10:55 -------
Created an attachment (id=21501)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21501&action=view)
different testcase

This one has declaration of overloaded functions in function scope. The assert
is the same.

$ gcc pr45049-2.C 
pr45049-2.C: In function 'void foo()':
pr45049-2.C:6:16: internal compiler error: tree check: expected tree that
contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at
cp/name-lookup.c:2160


-- 


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


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

* [Bug c++/45049] [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160
  2010-07-23 22:57 [Bug c++/45049] New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160 zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2010-08-17 10:55 ` zsojka at seznam dot cz
@ 2010-08-18 12:32 ` jakub at gcc dot gnu dot org
  2010-08-18 16:06 ` froydnj at gcc dot gnu dot org
  2010-08-18 16:07 ` froydnj at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-18 12:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2010-08-18 12:32 -------
This is broken for more than month, by a change which didn't fix any bug, nor
improved code generation nor compilation time; I'd say DECL_CHAIN should drop
the DECL_MINIMAL_CHECK test unless this is resolved soon, either by reverting
those places to use TREE_CHAIN again instead of DECL_CHAIN, or use
if (DECL_P (x)) ... DECL_CHAIN (x) ... else ... TREE_CHAIN (x) ...;


-- 


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


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

* [Bug c++/45049] [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160
  2010-07-23 22:57 [Bug c++/45049] New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160 zsojka at seznam dot cz
                   ` (5 preceding siblings ...)
  2010-08-18 12:32 ` jakub at gcc dot gnu dot org
@ 2010-08-18 16:06 ` froydnj at gcc dot gnu dot org
  2010-08-18 16:07 ` froydnj at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: froydnj at gcc dot gnu dot org @ 2010-08-18 16:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from froydnj at gcc dot gnu dot org  2010-08-18 16:06 -------
Subject: Bug 45049

Author: froydnj
Date: Wed Aug 18 16:05:40 2010
New Revision: 163344

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163344
Log:
gcc/cp/
        PR c++/45049
        * name-lookup.c (push_overloaded_decl): Change DECL_CHAIN to
        TREE_CHAIN.

gcc/testsuite/
        PR c++/45049
        * g++.dg/pr45049-1.C: New test.
        * g++.dg/pr45049-2.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/pr45049-1.C
    trunk/gcc/testsuite/g++.dg/pr45049-2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/45049] [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160
  2010-07-23 22:57 [Bug c++/45049] New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160 zsojka at seznam dot cz
                   ` (6 preceding siblings ...)
  2010-08-18 16:06 ` froydnj at gcc dot gnu dot org
@ 2010-08-18 16:07 ` froydnj at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: froydnj at gcc dot gnu dot org @ 2010-08-18 16:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from froydnj at gcc dot gnu dot org  2010-08-18 16:07 -------
Fixed.


-- 

froydnj at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-08-18 16:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 22:57 [Bug c++/45049] New: [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in push_overloaded_decl, at cp/name-lookup.c:2160 zsojka at seznam dot cz
2010-07-23 22:59 ` [Bug c++/45049] " zsojka at seznam dot cz
2010-07-23 23:44 ` hjl dot tools at gmail dot com
2010-07-24  0:40 ` hjl dot tools at gmail dot com
2010-08-12 23:30 ` pinskia at gcc dot gnu dot org
2010-08-17 10:55 ` zsojka at seznam dot cz
2010-08-18 12:32 ` jakub at gcc dot gnu dot org
2010-08-18 16:06 ` froydnj at gcc dot gnu dot org
2010-08-18 16:07 ` froydnj 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).