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] |
The compiler warns if an operator in an renaming declaration renames an operator with a different name. This patch extends the warning to the case where the renamed operator is a predefined one. Compiling oprename.ads must yield: oprename.ads:2:49: warning: "-" is being renamed as a different operator --- package oprename is function "+" (X, Y : Integer) return Integer renames "-"; end oprename; Tested on x86_64-pc-linux-gnu, committed on trunk 2010-10-26 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve warning when an operator renames another one with a different name.
Attachment:
difs
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |