aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2023-01-16 18:09:04 +0000
committerGaius Mulley <gaiusmod2@gmail.com>2023-01-16 18:09:04 +0000
commita0c595386fa322e1874d33742fc56c6a0c13c4a5 (patch)
tree09ec7c9ab44797b26648a2ab8c6e037130e253e7 /gcc/c
parentb1f30bf42d8d47228e52de998f3172b2f5dd7265 (diff)
downloadgcc-a0c595386fa322e1874d33742fc56c6a0c13c4a5.zip
gcc-a0c595386fa322e1874d33742fc56c6a0c13c4a5.tar.gz
gcc-a0c595386fa322e1874d33742fc56c6a0c13c4a5.tar.bz2
Detect errors when dereferencing an undeclared variable.
Attempting to dereference an undeclared variable will cause an ICE. Also attempting to pass an undeclared variable as an array of type will also cause an ICE. This patch detects both conditions and generates an appropriate error. gcc/m2/ChangeLog: * gm2-compiler/M2Quads.mod (AssignUnboundedVar): Check Type against NulSym and call MetaErrorT1 if necessary. (AssignUnboundedNonVar): Check Type against NulSym and call MetaErrorT1 if necessary. (BuildDesignatorPointer): Check Type1 against NulSym and call MetaErrorT1 if necessary. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions