[Fw] Template friend function injection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tQtP8Ecy3dqNkbVp@spambox.us

    [Fw] Template friend function injection

    Hi, I'd like to point out this post on the comp.lang.c++ newsgroup in
    which I present some code that I've been told is perfectly legitimate
    and standard-compliant. The problem I'm having with vc++ is that the
    compiler crashes with a fatal internal error, specifically: "fatal
    error C1001: An internal error has occurred in the compiler. (compiler
    file 'msc1.cpp', line 1393)"

    I've also forwarded this post to the g++/gcc newsgroups because even
    gcc is having troubles with this code. Although it doesn't crashes, it
    gives an error at linking time. The third and last compiler I tried
    (and the only one which gets the job done) is Open Watcom which seems
    to compile and link the code just fine (at least if I run the
    executable, it works).

    Post: http://groups.google.com/group/comp....afd501c807ffe#

    Thanks.
  • tQtP8Ecy3dqNkbVp@spambox.us

    #2
    Re: Template friend function injection

    I forgot to mention that I've tried this code on vc++ 8 and that
    someone on the c++ newsgroup tried it on visualc++ 9 with the same
    result.

    Comment

    Working...