public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ppluzhnikov at google dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [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 Date: Thu, 07 Feb 2013 06:22:00 -0000 [thread overview] Message-ID: <bug-56238-4@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2013-02-07 6:22 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-02-07 6:22 ppluzhnikov at google dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-56238-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).