This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65966] "sorry, unimplemented: unexpected AST of kind try_block" when initializing a 2D array
- From: "lhyatt at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 02 Jun 2015 19:30:10 +0000
- Subject: [Bug c++/65966] "sorry, unimplemented: unexpected AST of kind try_block" when initializing a 2D array
- Auto-submitted: auto-generated
- References: <bug-65966-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65966
--- Comment #3 from Lewis Hyatt <lhyatt at gmail dot com> ---
Hello-
I thought it would make sense to ping this one again a month later, I am afraid
I may have confused matters by mixing two separate issues in one report...
Definitely the second issue is already covered in other bug reports, but I
believe the main one is a new regression in 5.1 vs 4.9, so it ought to be
marked as such rather than "unconfirmed", no?
Just to recap, here is the testcase:
========
struct A {
A();
~A();
};
struct B {
A a{};
};
struct C {
B array[100][100];
} c;
=========
and it breaks starting at rev 220544:
https://gcc.gnu.org/viewcvs?rev=220544&root=gcc&view=rev
I just confirmed it is still broken on the current mainline.
Thanks!
-Lewis