This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/65966] "sorry, unimplemented: unexpected AST of kind try_block" when initializing a 2D array


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]