public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46992] New: [4.6 Regression] [C++0x] ICE: tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2452
@ 2010-12-17 15:45 zsojka at seznam dot cz
  2010-12-17 15:55 ` [Bug c++/46992] " paolo.carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2010-12-17 15:45 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] [C++0x] ICE: tree check: expected
                    record_type or union_type or qual_union_type, have
                    template_type_parm in lookup_conversions, at
                    cp/search.c:2452
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


------ testcase.C ------
extern int array[];

template < typename T > 
void foo (T t)
{
  array[(unsigned)t];
}
------------------------

Compiler output:
$ gcc -std=c++0x testcase.C
testcase.C: In function 'void foo(T)':
testcase.C:6:21: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have template_type_parm in lookup_conversions,
at cp/search.c:2452
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r167954 - crash
r167898 - crash
r165699 - OK
4.5 r166509 - OK


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

* [Bug c++/46992] [4.6 Regression] [C++0x] ICE: tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2452
  2010-12-17 15:45 [Bug c++/46992] New: [4.6 Regression] [C++0x] ICE: tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2452 zsojka at seznam dot cz
@ 2010-12-17 15:55 ` paolo.carlini at oracle dot com
  2010-12-17 16:09 ` hjl.tools at gmail dot com
  2010-12-18  4:08 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-12-17 15:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.12.17 15:54:53
                 CC|                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-12-17 15:54:53 UTC ---
Let's add Jason in CC.


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

* [Bug c++/46992] [4.6 Regression] [C++0x] ICE: tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2452
  2010-12-17 15:45 [Bug c++/46992] New: [4.6 Regression] [C++0x] ICE: tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2452 zsojka at seznam dot cz
  2010-12-17 15:55 ` [Bug c++/46992] " paolo.carlini at oracle dot com
@ 2010-12-17 16:09 ` hjl.tools at gmail dot com
  2010-12-18  4:08 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2010-12-17 16:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2010-12-17 16:09:44 UTC ---
It is caused by revision 166167:

http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00053.html


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

* [Bug c++/46992] [4.6 Regression] [C++0x] ICE: tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2452
  2010-12-17 15:45 [Bug c++/46992] New: [4.6 Regression] [C++0x] ICE: tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2452 zsojka at seznam dot cz
  2010-12-17 15:55 ` [Bug c++/46992] " paolo.carlini at oracle dot com
  2010-12-17 16:09 ` hjl.tools at gmail dot com
@ 2010-12-18  4:08 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2010-12-18  4:08 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-18 04:08:10 UTC ---
Fixed by the patch for 46670.

*** This bug has been marked as a duplicate of bug 46670 ***


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-17 15:45 [Bug c++/46992] New: [4.6 Regression] [C++0x] ICE: tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2452 zsojka at seznam dot cz
2010-12-17 15:55 ` [Bug c++/46992] " paolo.carlini at oracle dot com
2010-12-17 16:09 ` hjl.tools at gmail dot com
2010-12-18  4:08 ` jason 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).