This is the mail archive of the gcc-bugs@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]

[Bug c++/67064] Register asm variable broken


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Daniel Gutson from comment #9)
> Regarding the global register variables, it's a GNU C extension (see
> https://gcc.gnu.org/onlinedocs/gcc/Explicit-Reg-Vars.html), but I think it
> should be rejected when compiling in strict mode (e.g. -ansi or -std=c++14).
> I think this should be filed as a separate issue.

Those flags only disable extensions that interfere with well-formed code.  To
reject extensions, you want the -Werror=pedantic flag.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]