[Bug c++/86184] New: Shall gcc support this feature?
zhonghao at pku dot org.cn
gcc-bugzilla@gcc.gnu.org
Sun Jun 17 01:49:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
Bug ID: 86184
Summary: Shall gcc support this feature?
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zhonghao at pku dot org.cn
Target Milestone: ---
gcc++ produces errors when compiling the following code:
#include <stdio.h>
int main(int argc, char **argv) {
printf("%p\n", (void *)0xdeadbeef ? : (void *)0xaaaaaa);
return 0;
}
This code comes from a bug report of clang:
https://bugs.llvm.org/show_bug.cgi?id=7726
The programmers of clang discuss the code in details. They mentioned that gcc
does not accept the above code, but after all, they decide to implement the
feature to compile the code.
Shall gcc also support this feature?
More information about the Gcc-bugs
mailing list