public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59798] New: ICE befriending an inheriting constructor template specialization
@ 2014-01-14  0:42 richard-gccbugzilla at metafoo dot co.uk
  2014-02-14 19:16 ` [Bug c++/59798] [C++11] " reichelt at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: richard-gccbugzilla at metafoo dot co.uk @ 2014-01-14  0:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59798
           Summary: ICE befriending an inheriting constructor template
                    specialization
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk

This:

  struct A { template<typename T> A(T); };
  struct B : A { using A::A; };
  struct C { friend B::B<int>(int); };
  B b(0);

gives this:

<stdin>:3:21: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have integer_type in lookup_base, at
cp/search.c:215
0xd619a4 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../src/gcc/tree.c:9192
0x6be836 tree_check3
        ../../src/gcc/tree.h:2747
0x6be836 lookup_base(tree_node*, tree_node*, int, base_kind*, int)
        ../../src/gcc/cp/search.c:215
0x619b21 build_base_path(tree_code, tree_node*, tree_node*, int, int)
        ../../src/gcc/cp/class.c:281
0x6b1273 add_one_base_init
        ../../src/gcc/cp/method.c:515
0x6b7ad1 do_build_copy_constructor
        ../../src/gcc/cp/method.c:574
0x6b7ad1 synthesize_method(tree_node*)
        ../../src/gcc/cp/method.c:796
0x628444 mark_used(tree_node*, int)
        ../../src/gcc/cp/decl2.c:4779
0x5554a9 build_over_call
        ../../src/gcc/cp/call.c:7119
0x550e85 build_new_method_call_1
        ../../src/gcc/cp/call.c:7818
0x550e85 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ../../src/gcc/cp/call.c:7888
0x551f67 build_special_member_call(tree_node*, tree_node*, vec<tree_node*,
va_gc, vl_embed>**, tree_node*, int, int)
        ../../src/gcc/cp/call.c:7444
0x6a9739 expand_default_init
        ../../src/gcc/cp/init.c:1673
0x6a9739 expand_aggr_init_1
        ../../src/gcc/cp/init.c:1774
0x6ac403 build_aggr_init(tree_node*, tree_node*, int, int)
        ../../src/gcc/cp/init.c:1525
0x5663f4 build_aggr_init_full_exprs
        ../../src/gcc/cp/decl.c:5591
0x5663f4 check_initializer
        ../../src/gcc/cp/decl.c:5727
0x578c8d cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../src/gcc/cp/decl.c:6396
0x668fbd cp_parser_init_declarator
        ../../src/gcc/cp/parser.c:16804
0x66a76f cp_parser_simple_declaration
        ../../src/gcc/cp/parser.c:11195


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

* [Bug c++/59798] [C++11] ICE befriending an inheriting constructor template specialization
  2014-01-14  0:42 [Bug c++/59798] New: ICE befriending an inheriting constructor template specialization richard-gccbugzilla at metafoo dot co.uk
@ 2014-02-14 19:16 ` reichelt at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-02-14 19:16 UTC (permalink / raw)
  To: gcc-bugs

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

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-02-14
                 CC|                            |reichelt at gcc dot gnu.org
            Summary|ICE befriending an          |[C++11] ICE befriending an
                   |inheriting constructor      |inheriting constructor
                   |template specialization     |template specialization
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.0, 4.9.0

--- Comment #1 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
Confirmed. Crashes since GCC 4.8.0 when inheriting constructors were
introduced.


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

end of thread, other threads:[~2014-02-14 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-14  0:42 [Bug c++/59798] New: ICE befriending an inheriting constructor template specialization richard-gccbugzilla at metafoo dot co.uk
2014-02-14 19:16 ` [Bug c++/59798] [C++11] " reichelt 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).