This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84973] [8 Regression] ICE: Segmentation fault (tree_check()/ultimate_transparent_alias_target())
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Mar 2018 13:58:59 +0000
- Subject: [Bug c++/84973] [8 Regression] ICE: Segmentation fault (tree_check()/ultimate_transparent_alias_target())
- Auto-submitted: auto-generated
- References: <bug-84973-4@http.gcc.gnu.org/bugzilla/>
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.