public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/18765] New: Illegal program not detected, "/=" when "=" is ambiguous
@ 2004-12-01 20:26 ludovic dot brenta at insalien dot org
2004-12-02 0:08 ` [Bug ada/18765] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 3+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-12-01 20:26 UTC (permalink / raw)
To: gcc-bugs
(Debian bug #283835)
package Test_133 is
package pak1 is
type T1 is null record;
end pak1;
package pak2 is
subtype boolean is standard.boolean;
function "=" (x, y: pak1.T1) return boolean;
end pak2;
use pak1, pak2;
x1: pak1.T1;
b1: boolean := x1 /= x1; --ERROR: ambigous (gnat misses)
b2: boolean := x1 = x1; --ERROR: ambigous
end Test_133;
The actual output from gnat is:
test_133.ads:15:22: ambiguous expression (cannot resolve ""="")
test_133.ads:15:22: possible interpretation at line 8
test_133.ads:15:22: possible interpretation in package Standard
gnatmake: "test_133.ads" compilation error
Only the second error is detected; the ambiguity of "/=" goes
unnoticed.
--
Summary: Illegal program not detected, "/=" when "=" is ambiguous
Product: gcc
Version: 3.4.2
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=18765
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-27 18:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-18765-4@http.gcc.gnu.org/bugzilla/>
2011-08-31 14:40 ` [Bug ada/18765] Illegal program not detected, "/=" when "=" is ambiguous nicolas.boulenguez at free dot fr
2014-02-27 18:50 ` nicolas.boulenguez at free dot fr
2004-12-01 20:26 [Bug ada/18765] New: " ludovic dot brenta at insalien dot org
2004-12-02 0:08 ` [Bug ada/18765] " pinskia 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).