retitle 181679 [fixed in gcc-3.3] Preelaborate, exceptions, and -gnatN thanks
$ /usr/lib/gcc-snapshot/bin/gcc -c -gnatN bug_181679.ads No code generated for file bug_181679.ads (package spec) Victor Porton writes: > Package: gnat-3.2 > Version: 1:3.2.3-0pre1 > > 3.2.3 20030210 (prerelease) (i386-pc-linux-gnu) > > Compiler gives a wrong error message: > > pts/7:x,1$ gcc-3.2 -c -gnatN p.ads > p.ads:5:08: instantiation error at s-exctab.adb:169 > p.ads:5:08: non-static call not allowed in preelaborated unit > > package P is > > pragma Preelaborate; > > E: exception; > > procedure D; > > end P; > > package body P is > > procedure D is > begin > null; > end; > > end P; > -- > Victor Porton ([EMAIL PROTECTED]) > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]