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]

[Ada] Clarify message for missing pragma argument identifier


This patch clarifies the message for a missing pragma argument
identifier, as shown by this test program:

     1. pragma Restrictions
     2.   (Max_asynchronous_select_nesting => 0,
     3.    No_task_hierarchy);
           |
        >>> pragma argument identifier required here
        >>> since previous argument had identifier (RM 2.8(4))

     4. procedure PAI_Message is
     5. begin
     6.    null;
     7. end;

Tested on x86_64-pc-linux-gnu, committed on trunk

2010-06-14  Robert Dewar  <dewar@adacore.com>

	* par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
	missing pragma argument identifier.

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]