https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
Jakub Jelinek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|NEW
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
--- Comment #22 from Jakub Jelinek ---
DR now implemented for GCC 12 (but gnu::no_reorder support for namespace scope
asms would be more work; I think we don't reorder toplevel asms anyway).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
--- Comment #21 from GCC Commits ---
The master branch has been updated by Jakub Jelinek :
https://gcc.gnu.org/g:e5153e7d63b4cd9a3df490809c4f3fe1e94d3d37
commit r14-6187-ge5153e7d63b4cd9a3df490809c4f3fe1e94d3d37
Author: Jakub Jelinek
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
--- Comment #20 from Julian Waters ---
cppreference at least seems to indicate it retroactively applies to C++11
https://en.cppreference.com/w/cpp/language/asm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
--- Comment #18 from Julian Waters ---
Oops, I meant warning: 'no_reorder' attribute ignored [-Wattributes] in my
above comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
--- Comment #17 from Julian Waters ---
Looking at the source of the C++ parser it doesn't seem like asm (""); is
considered a statement but rather is correctly parsed as a declaration, see
cp_parser_block_declaration and cp_parser_declaration_st
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
--- Comment #16 from Xi Ruoyao ---
(In reply to Xi Ruoyao from comment #15)
> Alright, this is a C++ issue and I mistakenly assumed it was C.
Note that in C++ we have some inconsistency with the standard. In the standard
asm(...) are "declarat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
Xi Ruoyao changed:
What|Removed |Added
Summary|Attributes cannot be|Attributes cannot be
|app