http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56436



             Bug #: 56436

           Summary: Documentation states restriction that's not enforced

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: ada

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: si...@pushface.org





Created attachment 29530

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29530

Patch to remove documentation inconsistency



gcc/ada/projects.texi states, for Spec_Suffix, that (amongst other rules)



It cannot start with an alphanumeric character

It cannot start with an underscore followed by an alphanumeric character



Neither of these rules is enforced, in other words this is legal:



project Prj is

   package Naming is

      for Spec_Suffix ("Ada") use "_s.ada";

      for Body_Suffix ("Ada") use "_2.ada";

   end Naming;

end Prj;



There is at least one user who uses _s.ada, _b.ada, so it should be appropriate

to remove the stated restriction as in the attached patch.

Reply via email to