Fixes compilation abandoned bomb in
B24009B.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47683
138bc75d-0d04-0410-961f-
82ee72b054a4
+2001-12-05 Robert Dewar <dewar@gnat.com>
+
+ * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
+ Fixes compilation abandoned bomb in B24009B.
+
2001-12-05 Ed Schonberg <schonber@gnat.com>
* sem_ch12.adb:
E1 := First (Exprs);
Analyze (E1);
- if Etype (E1) = Any_Type then
+ -- Check for missing or bad expression (result of previous error)
+
+ if No (E1) or else Etype (E1) = Any_Type then
raise Bad_Attribute;
end if;