Issue 134658
Summary Clang not diagnosing invalid literals in unevaluated contexts
Labels clang
Assignees
Reporter kyuupichan
    I cannot find anything that permits a compiler to accept the following (in either the C or C++ standards).  Integer literals must have a type and a value in range for that type:

#if 0? 999999999999999999999999999999999999: 3
#endif

Clang accepts it even with -pedantic-errors.  It seems that GCC, EDG and MSVC all reject it.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to