Re: VC8 template base class member function visibility bug

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks for looking at this. To be honest, I don't understand the
snippet from the standard even after reading it multiple times. I got
access to two more compilers: GCC 4.1 doesn't compile it as well:
"template class used without template parameters". But the Intel 10.0
compiler compiles it without complaining, and executes the line in
question as if it was "BaseTemplate<unsigned>::test(123);".
So maybe the VC8 is right in compiling this, but the compilation
result is definitely wrong, since it modifies unrelated data.

Greetings, Max

.



Relevant Pages

  • Static member variables in template class.
    ... When you have a template class with a static member variable, ie., ... I know that in the past some compilers wouldn't event create the ... to enumerate for all T of interest, ...
    (comp.lang.cpp)
  • Template member functions
    ... I'm having trouble with a template member function in a non template class. ... VisualAge compilers but Sun Workshop 6 doesn't like it. ... The sun compiler stumbles over the indicated line with the message "Badly ...
    (comp.lang.cpp)
  • Re: Usage of scanf to prevent buffer overflow...
    ... first white space character. ... > not be the case with the newer compilers. ... A good start would be reading the FAQ for comp.lang.c which explains why ...
    (comp.lang.c)
  • Re: Detect EOF for direct access, unformatted files?
    ... >But I'd be interested in seeing this run on a variety of compilers ... shows the IOSTAT code when reading beyond end of direct-access file ...
    (comp.lang.fortran)
  • Re: the return value of a process
    ... by a Unix command ... Reading the code should do the trick. ... Modern C compilers do better at useful error messages than ... reluctant to give supporting evidence for type mismatches: ...
    (comp.lang.c)