comp.lang.ada
 help / color / mirror / Atom feed
From: "Alejandro R. Mosteo" <alejandro@mosteo.com>
Subject: Error popping up after "unrelated" generic instantiation
Date: Sat, 3 Sep 2016 15:54:15 +0200
Date: 2016-09-03T15:54:15+02:00	[thread overview]
Message-ID: <nqekm7$f9p$1@dont-email.me> (raw)

I have a convoluted code in which adding an instantiation without using 
it anywhere breaks the build with the uninspired error message 
"incorrect use of <subprogram>". It smells fishy to me and would be glad 
for your opinions. If you want to try, please check out this commit and 
see what happens in your setup. I'm using GPL2016 on Ubuntu 16.04.

$ hg clone ssh://hg@bitbucket.org/amosteo/rxada -u fec9d9df95b9
$ cd rxada
$ gprbuild rx-examples-minimal

This builds (and runs) correctly. However, uncommenting line 23 in 
src/main/rx-examples.ads results in the aforementioned error:

rx-examples-minimal.adb:22:06: incorrect use of "Subscribe"
(and more similar instances in the same file).

Cheers,
Alex.


             reply	other threads:[~2016-09-03 13:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-03 13:54 Alejandro R. Mosteo [this message]
2016-09-04 15:33 ` Error popping up after "unrelated" generic instantiation Stephen Leake
2016-09-04 17:08   ` Simon Wright
2016-09-05  9:29     ` Alejandro R. Mosteo
2016-09-05 16:58 ` Stephen Leake
2016-09-06  9:22   ` Alejandro R. Mosteo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox