[llvm-bugs] [Bug 25401] New: C11 _Noreturn not handled properly in pretty printer
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 4 05:49:22 PST 2015
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: unassignedclangbugs at nondot.org
Reporter: tarasevich at cs.uni-saarland.de
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151104/2ce06ac8/attachment.html>
More information about the llvm-bugs
mailing list