Re: Cannot initialize entities of limited type?



Martin Krischik wrote:


$ gnatmake hello
gcc -c hello.adb
hello.adb:17:16: cannot initialize entities of limited type
gnatmake: "hello.adb" compilation error
$

I got lost. What's wrong in the code above?


You are using a new Ada 2005 feature which your compiler may not yet support. Update your compiler or use:

procedure Constructor (X: in out T);

Martin

Ah.. Of course that is a pretty obvious response to the original question that I totally missed. Woops!
.



Relevant Pages

  • Re: Can someone explain this use of "new"?
    ... the compiler has no way of knowing what your ctor does; ... 100% sure - haven't tried it) add itself to a static collection, ... less "lost" - in fact, if it was a form, the ctor could also perhaps show ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: malloc vs new -> speed of access, virtual memory
    ... Lost Bits wrote: ... > I even profiled using gprof, and the only confuins thing is that its ... It is the function inserted(by the compiler) ...
    (comp.lang.cpp)
  • Re: 18F or 16F for newbies in 05 ?
    ... > Today I learned that Microchip's student 18F C compiler is available. ... > This affects my preference of newbie-tutorial chips. ... Would you prefer to live life as a Lion or as a sheep?. ... Once you've lost the will to live, reading the truly appalling, PIC ...
    (sci.electronics.design)
  • Why do we still assemble?
    ... B6700's compiler structure so I knew how to write a compiler and generate ... purged all their tape archives and it was lost. ... "How To Write A Burroughs Compiler" document, ... the Burroughs architecture was the most impressive computer ...
    (comp.compilers)
  • Re: Misleading VS.NET 2003 error message
    ... but I can validate that it happens when a forward ... reference of include file is left out. ... compiler get lost due to bad punctuation, ...
    (microsoft.public.vc.mfc)