[Bug c++/86870] Declaration disambiguation is too greedy

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86870

--- Comment #2 from Andrew Pinski  ---
GCC, clang, MSVC and ICC all reject it.

[Bug c++/86870] Declaration disambiguation is too greedy

2018-08-13 Thread blitzrakete at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86870

--- Comment #1 from Nicolas Lesser  ---
Oops, I missed to define a default constructor for `X`. This however, does not
change the bug report and gcc still incorrectly parses the second statement as
a declaration.