https://llvm.org/bugs/show_bug.cgi?id=26349
Bug ID: 26349 Summary: Digit separators as only characters in significand or exponent of floating point constants can trigger assertions Product: clang Version: trunk Hardware: All OS: All Status: NEW Severity: normal Priority: P Component: C++14 Assignee: unassignedclangb...@nondot.org Reporter: craig.top...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified The following literals trick NumericLiteralParser into believing that they have an exponent or significand when they don't. Later when GetFloatValue tries to process them the empty exponent or significand is detected and triggers an assertion. They also diagnose the digit separator as being both at the start and end of a digit sequence. float f = 0x.'p1f; float g = 0e'f; This one doesn't trigger an assertion, but isn't diagnosed as an empty exponent either. float h = 0x0p'f; -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs