https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99843
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-03-31
Known to fail| |11.0, 7.5.0
Keywords| |wrong-code
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Probably an issue with merging the declarations
friend void Init105(void);
and
void Init105(void) __attribute__((constructor(105)));
Smaller testcase:
//void Init105(void) __attribute__((constructor(105))); -- fixes it
class Foo
{
friend void Init105(void);
};
void Init105(void) __attribute__((constructor(105)));
void Init105(void)
{
}