Re: Compiler crash (VC2008 Prof)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Lowndes

    Re: Compiler crash (VC2008 Prof)

    Anna,

    Can you submit this as a bug on the MS connect site please and post
    back a link to your bug report here so others can find it and
    vote/verify it.

    It's difficult to know what to recommend - the code snippet compiles
    fine with the Comeau online compiler which is usually a good
    indication that the code itself is not invalid.

    The immediate crash can be eliminated by commenting out either of the
    2 constructor forms, but whether you need them in your actual code I
    don't know.

    It also disappears for me if I change the typedef names (and their
    usage):

    size_type->size_typ, iterator -iterat.

    Dave
  • Anna Smidt

    #2
    Re: Compiler crash (VC2008 Prof)

    David, thanks for your reply.
    -------------
    Does it crash for you? It was not really clear because you said ->
    It's difficult to know what to recommend - the code snippet compiles
    fine with the Comeau online compiler
    -------------
    Do you know this from just looking at the code or have you been able to
    reproduce the crash? ->
    The immediate crash can be eliminated by commenting out either of the
    2 constructor forms, but whether you need them in your actual code I
    don't know.
    It also disappears for me if I change the typedef names (and their
    usage):
    >
    size_type->size_typ, iterator -iterat.
    >
    Well, I don't know that either because I'm still too newbie. I did click
    on "Send error report" quite a dozen times when the compiler crashed.
    Should I post it on MS Connect anyway? I am still too new to C++ to be
    able to describe the steps to reproduce them.

    Anna

    Comment

    • Anna Smidt

      #3
      Re: Compiler crash (VC2008 Prof)

      It also disappears for me if I change the typedef names (and their
      usage):
      >
      size_type->size_typ, iterator -iterat.
      >
      Dave
      This helped! I am not yet sure if it breaks anything, but the crash is
      gone!
      Thanks very much.

      Comment

      • David Lowndes

        #4
        Re: Compiler crash (VC2008 Prof)

        >Do you know this from just looking at the code or have you been able to
        >reproduce the crash? ->
        I could repro the crash with the VS2008 compiler, and I also checked
        the code on http://www.comeaucomputing.com/tryitout since it's widely
        regarded as being as conformant a compiler as there is.
        >Should I post it on MS Connect anyway?
        Yes please - that way we'll get some feedback as to whether MS can
        repro it - and possibly a recommended work-around/fix.

        Please post the link from your Connect bug report back here and I'll
        vote/validate it.

        Dave

        Comment

        • David Lowndes

          #5
          Re: Compiler crash (VC2008 Prof)

          Anna,

          Have you submitted a bug on the Connect web site for this issue?

          Dave

          Comment

          • David Lowndes

            #6
            Re: Compiler crash (VC2008 Prof)

            So as not to lose this, I've submitted a bug on Connect:



            Dave

            Comment

            • Ben Voigt [C++ MVP]

              #7
              Re: Compiler crash (VC2008 Prof)

              David Lowndes wrote:
              So as not to lose this, I've submitted a bug on Connect:
              >

              >
              Dave
              Voted for it, but I think the code really should be

              typedef typename vector<T>::iter ator iterator;

              etc

              The current code IS an infinitely recursive definition.


              Comment

              Working...