public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56238] New: [4.8 regression] ICE in tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2515
@ 2013-02-07  6:22 ppluzhnikov at google dot com
  2013-02-07  9:07 ` [Bug c++/56238] [4.7/4.8 " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ppluzhnikov at google dot com @ 2013-02-07  6:22 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56238
           Summary: [4.8 regression] ICE in tree check: expected
                    record_type or union_type or qual_union_type, have
                    template_type_parm in lookup_conversions, at
                    cp/search.c:2515
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ppluzhnikov@google.com


Test case:

class A
{
    template < typename T > T& get ();
    template < typename T > class B
    {
        void RemovePoint (A& value)
        {
            static_cast < double >(value.get < T > ());
        }
    };
};

Compiles fine with 4.7.x, with 4.8 without -std=c++11.
ICE's with -std=c++11 using
g++ (GCC) 4.8.0 20130205 (experimental)

g++ -c t.ii -std=c++11 
t.ii: In member function ‘void A::B<T>::RemovePoint(A&)’:
t.ii:8:55: 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:2515
             static_cast < double >(value.get < T > ());
                                                       ^
0xc6159a tree_check_failed(tree_node const*, char const*, int, char const*,
...)
    ../../gcc/tree.c:8946
0x66c962 tree_check3
    ../../gcc/tree.h:3709
...

Google ref: b/8153313


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

end of thread, other threads:[~2013-03-17  2:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07  6:22 [Bug c++/56238] New: [4.8 regression] ICE in tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2515 ppluzhnikov at google dot com
2013-02-07  9:07 ` [Bug c++/56238] [4.7/4.8 " jakub at gcc dot gnu.org
2013-02-07 10:41 ` rguenth at gcc dot gnu.org
2013-02-07 17:40 ` jason at gcc dot gnu.org
2013-02-08 15:28 ` rguenth at gcc dot gnu.org
2013-02-09 20:39 ` jason at gcc dot gnu.org
2013-02-11  8:48 ` [Bug c++/56238] [4.7 " jakub at gcc dot gnu.org
2013-02-11 15:34 ` jason at gcc dot gnu.org
2013-03-17  2:35 ` 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).