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++/71946] asm in toplevel lambda function rejected


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.4                       |---
            Summary|FD_ZERO macro parsing error |asm in toplevel lambda
                   |in lambda function.         |function rejected
           Severity|major                       |normal

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
auto test = []{ __asm__ __volatile__ ("" : : "r" (0) ); };

Looks like the C++ front-end is parsing the inline-asm as a toplevel inline-asm
and rejecting extended inline-asm.

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