public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/16098] New: Illegal program not detected, RM 13.1(6)
@ 2004-06-20 11:32 ludovic dot brenta at insalien dot org
  2004-06-20 16:41 ` [Bug ada/16098] " pinskia at gcc dot gnu dot org
  2004-10-31 19:51 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 6+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-06-20 11:32 UTC (permalink / raw)
  To: gcc-bugs

--  Pragma convention is a representation pragma (RM B.1(28)), and
--  such pragmas apply to multiple entities with the same name (RM
--  13.1(5)).  A representation pragma is illegal if applied to a
--  non-local renamed entity (RM 13.1(6)).
package Test_248683 is
   procedure p1(x: integer);
end Test_248683;

with Test_248683;
package pak2 is
   procedure p2(x: integer) renames Test_248683.p1;
   procedure p2(x: float);
   pragma convention(C, p2);    --ERROR: applied to non-local renames
end pak2;

I expect:
test_248683.adb:13:04: representation pragma applied to non-local subprogram
"p2" declared at line 3

Instead I get:
cannot generate code for file test_248683.ads (package spec)
to check package spec for errors, use -gnatc
gnatmake: "test_248683.ads" compilation error

With -c -gnatc I get nothing.

-- 
           Summary: Illegal program not detected, RM 13.1(6)
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic dot brenta at insalien dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-16098-286@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2008-04-14 12:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-20 11:32 [Bug ada/16098] New: Illegal program not detected, RM 13.1(6) ludovic dot brenta at insalien dot org
2004-06-20 16:41 ` [Bug ada/16098] " pinskia at gcc dot gnu dot org
2004-10-31 19:51 ` pinskia at gcc dot gnu dot org
     [not found] <bug-16098-286@http.gcc.gnu.org/bugzilla/>
2008-04-12  3:08 ` sam at gcc dot gnu dot org
2008-04-14 12:12 ` sam at gcc dot gnu dot org
2008-04-14 12:13 ` sam at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).