https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61362
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |6.0 --- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> --- ICE in Comment 2 fixed in 5.2.0, ICE in Comment3 fixed for c++14 and more recent standards in 6.1.0. I added both testcases.