[Bug c++/83817] [7/8 Regression] internal compiler error: tree check: expected call_expr, have aggr_init_expr in tsubst_copy_and_build, at cp/pt.c:17822
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 15 17:16:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83817
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P1 |P2
CC| |jakub at gcc dot gnu.org
Summary|[8 Regression] internal |[7/8 Regression] internal
|compiler error: tree check: |compiler error: tree check:
|expected call_expr, have |expected call_expr, have
|aggr_init_expr in |aggr_init_expr in
|tsubst_copy_and_build, at |tsubst_copy_and_build, at
|cp/pt.c:17822 |cp/pt.c:17822
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
struct A;
struct B { template <typename> using C = A; };
struct D : B { struct F { typedef C<char> E; }; };
struct G {
struct I { I (D, A &); } h;
D::F::E &k ();
D j;
G (G &&) : h (j, k ()) {}
};
struct N { G l; };
typedef N (*M)(N &);
struct H { const char *o; M s; };
N foo (N &);
H r { "", [](auto &x) { return foo (x); }};
Started with r239268.
More information about the Gcc-bugs
mailing list