https://llvm.org/bugs/show_bug.cgi?id=25401
Bug ID: 25401
Summary: C11 _Noreturn not handled properly in pretty printer
Product: clang
Version: 3.7
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Pretty printing function declaration with C11 _Noreturn attribute yields
uncompilable code, i.e.
_Noreturn void foo(){
abort();
}
int main() {}
If parsed by Clang and pretty printed via pretty printer:
void foo() _Noreturn { // error: '_Noreturn' keyword must precede function
declarator
abort();
}
int main() {}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs