https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93140
--- Comment #2 from Denis Sheremet <gcc at lxlz dot space> --- (In reply to Martin Liška from comment #1) > Is the code snippet invalid, right? It was invalid on real-life example I caught, but it could be valid if `Bar` function is defined and takes no arguments, like that: int Bar(){return 42;} At least this way it compiles on clang. gcc fails either way.