https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064
--- Comment #17 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Daniel Gutson from comment #15) > (In reply to Jason Merrill from comment #14) > > '-Wpedantic' does not cause warning messages for use of the > > alternate keywords whose names begin and end with '__'. > > Do you refer to the __asm__? Yes. I don't think we should warn about __asm__ either by default or with -pedantic, though perhaps there should be an even-more-pedantic mode that complains about __keywords__ outside system headers. For the original bug, I think force_paren_expr needs to ignore DECL_HARD_REGISTER variables. (In reply to Jens Maurer from comment #16) > Agreed, but this: > > struct s { > int i; > }; > register struct s *reg asm( "si" ); > > (note: no double underscores) should issue a diagnostic for violating > 7.1.1p2 when invoking > > > g++ -std=c++14 -Wall -Wextra -Wpedantic -c reg-asm.cc > > right? It doesn't. Total silence. Yes, that should give a pedwarn.