Fix seg fault parsing invalid exponents
Add error message when exponents are incomplete, for example 5e and 5.e
This commit is contained in:
parent
9b0e06a8e8
commit
07a30249f4
8 changed files with 36 additions and 6 deletions
2
Examples/test-suite/errors/cpp_invalid_exponents2.stderr
Normal file
2
Examples/test-suite/errors/cpp_invalid_exponents2.stderr
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
cpp_invalid_exponents2.i:3: Error: Exponent does not have any digits
|
||||
cpp_invalid_exponents2.i:3: Error: Syntax error in input(1).
|
||||
Loading…
Add table
Add a link
Reference in a new issue