Home Dashboard Directory Help
Search

C1001 Error - "virtual" inheritance, member function pointer template and "Enable minimal rebuild" by gatorette


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 665425
Opened: 4/28/2011 4:24:14 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

A "fatal error C1001: An internal error has occurred in the compiler." error occurs when compiling (a priori) correct C++ code. The code is attached to this report.

Notes:
1. The code compiles correctly if "Derived" does not inherit virtually from "Base"
2. The code compiles correctly if "Contained" is not templated by member function (void(T::*)()).
3. The code compiles correctly if "Enable minimal rebuild" is disabled (/Gm-).

The same error was reproduced with Visual Studio 2005 SP2 (Version 8.0.50727.762 (SP.050727-7600)).

The same code was tested and compiled correctly on several online compilers (Comeau, g++ 4.1.2 through codepad.org).
Details
Sign in to post a comment.
Posted by Microsoft on 9/22/2011 at 10:37 PM
Hi: this issue has been fixed. The fix should show up in a future release of Visual C++.

Thank you for reporting the issue.

Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 4/28/2011 at 5:13 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
main.cpp 4/28/2011 389 bytes