https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84973

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
clang++ rejects this with error: reference to non-static member function must
be called.
GCC rejects that too, but only during instantiation, e.g. if I add
int v;
as the first line and int main () { a <0> (); } at the end, I get:
invalid use of non-static member function
error.

No idea what's wrong here though, we really shouldn't notice_global_symbol with
something that is not really going to be emitted and likely isn't instantiated
at all.

Reply via email to