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?