This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Tested on i686-linux, committed on HEAD This patch ensures that a bad attribute is properly recorded in the tree as an error. Without this patch, some cases of bad attributes can blow up with a compiler compiled with checks on. The following program should give the error message: q.adb:2:28: unrecognized attribute "Junk_Attribute" procedure Q is X : Integer := Standard'Junk_Attribute; begin null; end; even when compiled with a compiler compiled with full checks 2005-03-29 Robert Dewar <dewar@adacore.com> * par-ch4.adb (P_Name): When a bad attribute is returned, return error, rather than proceed ahead using a junk attribute name.
Attachment:
difs.15
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |