https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85444
Bug ID: 85444 Summary: asm specifier on typedef silently ignored Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: whh8b at virginia dot edu Target Milestone: --- Created attachment 43970 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43970&action=edit Patch to add warning for ignored asm specifiers. In a declaration like typedef struct {} x asm ("X"); the asm label is properly ignored but the user is not alerted to this. I am attaching a patch that will add a warning at -Wpedantic to alert the user in a case such as this. This is the first time that I am submitting a patch to GCC and I am really nervous about making sure that I followed the proper protocol. I am sure that there are plenty of things that I am missing but I look forward to cleaning it up and learning the process. Thanks for your patience!