comp.lang.ada
 help / color / mirror / Atom feed
* Error popping up after "unrelated" generic instantiation
@ 2016-09-03 13:54 Alejandro R. Mosteo
  2016-09-04 15:33 ` Stephen Leake
  2016-09-05 16:58 ` Stephen Leake
  0 siblings, 2 replies; 6+ messages in thread
From: Alejandro R. Mosteo @ 2016-09-03 13:54 UTC (permalink / 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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-06  9:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-03 13:54 Error popping up after "unrelated" generic instantiation Alejandro R. Mosteo
2016-09-04 15:33 ` 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

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