Re: VC++ :: C2912 Error Question

From: Hendrik Schober (SpamTrap_at_gmx.de)
Date: 12/10/04


Date: Fri, 10 Dec 2004 16:43:06 +0100

David Lowndes <davidl@example.invalid> wrote:
> [http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=3facc81f-3912-493b-944d-0faf24fe32c8]

> No problem - have a look at MS's response to the report - they have an
> explanation.

  Too bad they won't fix this. While one day
  all C++ compilers will probably do that,
  until then this will remain a bug for all
  compilers except VC. (And rightly so --
  currently this /is/ a bug.)
  I have this problem, too, and it's realy
  annoying. I am writing a lot of template
  code that's ported to other platforms.
  I often create specializations by copy-
  pasting the original template and forget
  to remove superflous 'typename's -- and
  the compiler doesn't bark at me. When
  this code then is ported the developer
  doing this has to understand the error
  message, the problem, how to fix this,
  and the impact onto other platforms. ("Do
  I need to surround this fix with '#ifdef'
  because /my/ compiler is broken or am I
  doing the right thing?") While all this
  certainly is doable, it is also tedious,
  error prone, and steals our time.
  I have actually started to write template
  code using CodeWarrior first and porting
  it to VC, because of this, missing two-
  phase lookup (which is even worse!) and
  some other quirks in VC. (And I hate CW's
  IDE!)

> Dave
> [...]

  Schobi

-- 
SpamTrap@gmx.de is never read
I'm Schobi at suespammers dot org
"The presence of those seeking the truth is infinitely
 to be prefered to those thinking they've found it."
 Terry Pratchett


Relevant Pages

  • Re: Benefit of not defining the order of execution
    ... modify the code slightly ... Go find places where the order matters and fix ... Compilers could warn about such examples, ... typically subtle bugs. ...
    (comp.lang.c)
  • Re: Problem using Bison & g++
    ... That seemed to fix the problem. ... extern "C" {int yylex; ... compilers) and needed to get rid of the extern "C". ...
    (comp.unix.programmer)
  • Re: gfortran read of hex values
    ... Here is a fix; see if more compilers ... I think, by F95, it has a right to object. ... Bottom line is that if you fix the two non-Standardisms, ... Salford and gfortran have bugs to fix. ...
    (comp.lang.fortran)
  • Re: Why does VS mark files as changed?
    ... When I started teaching myself programming, I was poor, and couldn't afford ... shareware command-line compilers and used them. ... Microsoft MVP ... > Maybe they should fix what they have first. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help Required: Operator overloaded function template and Friend
    ... the inability to deduce T is the correct behaviour. ... follow the Standard requirements precisely. ... > other compilers do with this situation since I have only gcc. ... > type of a class template whose type parameter needs to be deduced from ...
    (comp.lang.cpp)