[Bug c++/84973] [8 Regression] ICE: Segmentation fault (tree_check()/ultimate_transparent_alias_target())

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 21 13:59:00 GMT 2018


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.


More information about the Gcc-bugs mailing list