INTERNAL COMPILER ERROR

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pasalic.zaharije@gmail.com

    #1

    INTERNAL COMPILER ERROR

    I write some project, and after few lines (ok, not few, after a lot of
    lines) i got internal compiler error.
    After few hours of looking trough my code, I find error: two same names
    in typedef and in class. So, I write
    simple console app with:

    typedef unsigned int UI32;

    class UI32
    {
    };

    Compile, and BUM! Again, internal compiler error:

    "INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701)
    Please choose the Technical Support command on the Visual C++
    Help menu, or open the Technical Support help file for more
    information"

    I am workin on Visual Studio 2003, on XP + sp2. I try to use google to
    see is there anything about this, but no (realy, i did not look in
    detail).

    Is there any patch/fix for that, or ...

    Best,
    Zaharije Pasalic

  • Jochen Kalmbach [MVP]

    #2
    Re: INTERNAL COMPILER ERROR

    Hallo pasalic!
    typedef unsigned int UI32;
    >
    class UI32
    {
    };
    This is not valid C++:

    Comeau C/C++ 4.3.8 (Aug 19 2006 13:36:48) for ONLINE_EVALUATI ON_Alpha1
    Copyright 1988-2006 Comeau Computing. All rights reserved.
    MODE:strict errors C++

    "ComeauTest .c", line 3: error: invalid redeclaration of type name "UI32"
    (declared
    at line 1)
    class UI32
    ^

    1 error detected in the compilation of "ComeauTest .c".


    But of course... it should not generate an "Internal Compiler" error.
    You can report this bug via



    With VS2005 (SP1) it generates an error:

    1>c:\localproje cts\cpp\cpp.cpp (660) : error C2371: 'UI32' :
    redefinition; different basic types
    1 c:\localproject s\cpp\cpp.cpp(6 57) : see declaration of 'UI32'


    Have you tried with VS2003-SP1?

    Greetings
    Jochen

    Comment

    • eddie geer

      #3
      Re: INTERNAL COMPILER ERROR

      I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.


      Comment

      • pasalic.zaharije@gmail.com

        #4
        Re: INTERNAL COMPILER ERROR


        eddie geer je napisao:
        I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.
        Does anybody have VS 2005 to check this? I will try, if I find 2005.

        Best,
        Zaharije Pasalic

        Comment

        • pasalic.zaharije@gmail.com

          #5
          Re: INTERNAL COMPILER ERROR


          pasalic.zahar.. .@gmail.com je napisao:
          eddie geer je napisao:
          I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.
          >
          Does anybody have VS 2005 to check this? I will try, if I find 2005.
          >
          Best,
          Zaharije Pasalic
          On VS 2005, it is ok. No internal error.

          Best,
          Zaharije Pasalic

          Comment

          • Jochen Kalmbach [MVP]

            #6
            Re: INTERNAL COMPILER ERROR

            Hi pasalic!
            eddie geer je napisao:
            >I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.
            >
            Does anybody have VS 2005 to check this? I will try, if I find 2005.
            As I said in my first posting: It works with VS2005 (SP1)...

            Greetings
            Jochen

            Comment

            • pasalic.zaharije@gmail.com

              #7
              Re: INTERNAL COMPILER ERROR


              Jochen Kalmbach [MVP] je napisao:
              Hi pasalic!
              eddie geer je napisao:
              I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.
              Does anybody have VS 2005 to check this? I will try, if I find 2005.
              >
              As I said in my first posting: It works with VS2005 (SP1)...
              >
              Greetings
              Jochen
              Sorry, my miss-look.

              best,
              Pasalic Zaharije

              Comment

              Working...