diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-07-22 20:23:59 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-07-22 20:26:15 +0200 |
commit | a4652a544c3965a986f3440f86a567e12615cca7 (patch) | |
tree | 69e86fe3033119294589814ea3cd16961386d730 /src | |
parent | bb39004f1086e3fbbf5933ac880f0bb396c27cd0 (diff) | |
download | ghdl-a4652a544c3965a986f3440f86a567e12615cca7.tar.gz ghdl-a4652a544c3965a986f3440f86a567e12615cca7.tar.bz2 ghdl-a4652a544c3965a986f3440f86a567e12615cca7.zip |
avoid crash in scanner if a number is followed by a number.
Fix #627
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/scanner.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/scanner.adb b/src/vhdl/scanner.adb index 537343af0..c52714c17 100644 --- a/src/vhdl/scanner.adb +++ b/src/vhdl/scanner.adb @@ -1980,7 +1980,8 @@ package body Scanner is -- literal. case Characters_Kind (Source (Pos)) is when Digit => - raise Internal_Error; + -- Happen if d#ddd# is followed by a number. + Error_Msg_Scan ("space is required between numbers"); when Upper_Case_Letter | Lower_Case_Letter => -- Could call Error_Separator, but use a clearer message |