This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71946] asm in toplevel lambda function rejected
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Jul 2016 06:11:05 +0000
- Subject: [Bug c++/71946] asm in toplevel lambda function rejected
- Auto-submitted: auto-generated
- References: <bug-71946-4@http.gcc.gnu.org/bugzilla/>
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.