[Patch] PR c/7490
Richard Henderson
rth@redhat.com
Tue Nov 26 10:27:00 GMT 2002
On Tue, Nov 26, 2002 at 02:49:19PM +0100, Philippe Trebuchet wrote:
> This also result in an ICE without the patch.
> void foo()
> {
> auto void BAR() {};
> auto void bar () __attribute__ ((alias ("BAR")));
> bar();
This also doesn't do what you think. There *still* is no
definition for the assembly-level symbol "BAR". You have
introduced a definition for "BAR.0".
> ! id = maybe_get_identifier (TREE_STRING_POINTER (id));
No, this is not what I mean. The alias is, for better or
worse, defined at the assembly level, not the source language
level. This affects C++ significantly more than C due to
name mangling.
r~
More information about the Gcc-patches
mailing list