apparent bug related to templates.

Mumit Khan khan@xraylith.wisc.EDU
Fri Apr 30 23:15:00 GMT 1999


doug.muir@papy.com writes:
> Version is reported as:
>      Reading specs from
> e:\egcs\bin\..\lib\gcc-lib\i386-mingw32\egcs-2.91.66\specs
>      gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
> 
> I've included a preprocessed file which demonstrates the error messages (I
> know it's large, but its about as small as I could quickly make it) as well
> as a file containing the error messages generated on my machine (Dell
> Precition 410, Dual PII 450, 128Mb, running NT 5.0 beta 2).

Hi Doug,

I have code that runs into a bug very similar as yours with egcs-1.1.2
(KAI compiles it fine); good news is that egcs-1.2 seems to have it
fixed. In fact, if I take your code and make the following modifications:
  
  - provide prototypes for _memAlloc and _memFree
  - specialize num_elts<0> to avoid zero-size arrays

it builds fine with the current development snapshot.

Regards,
Mumit




More information about the Gcc-bugs mailing list