https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105178
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |11.3 Status|UNCONFIRMED |NEW Keywords| |rejects-valid CC| |ppalka at gcc dot gnu.org Last reconfirmed| |2022-04-06 Ever confirmed|0 |1 Summary|g++ incorrectly reports |[11 Regression] g++ |invalid use of incomplete |incorrectly reports invalid |type |use of incomplete type See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=104242 --- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> --- Confirmed, trunk and 11.2.0 accept the testcase. This is likely caused by r11-9303-g853b9d54365372 and the same bug as PR104242 except reported against 11 instead of trunk. I can confirm that backporting r12-7708-g7a42b1fa1a090e to the 11 branch fixes the testcase there.