This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Wholly agreed. My comment about -O0 is because the address-of can be optimized out at higher optimization levels.Sure, but the address needs to be passed (at least until inlining) as
the "this" pointer of C::operator int (). The wording is misleading,
but at least at -O0 a warning is correct.
I think the warning is appropriate at all optimization levels. The warning is telling the user that they are (implicitly) trying to take the address of a register variable.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |