Search

VC++ 2010 Compiler Crash when using properties (__declspec(property..) and /doc option by Do Django

Closed
as Fixed Help for as Fixed

1
0
Sign in
to vote
Type: Bug
ID: 687903
Opened: 9/11/2011 1:29:52 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
0
User(s) can reproduce this bug
Hi all,

the visual C++ compiler crashes when using /doc option to generate XML documentation and adding comments to C++ properties.

Output:

1>------ Build started: Project: XMLDocCrash, Configuration: Debug Win32 ------
1> XMLDocCrash.cpp
1>c:\users\XXX\documents\visual studio 2010\projects\xmldoccrash\xmldoccrash\xmldoccrash.cpp(49): fatal error C1001: An internal error has occurred in the compiler.
1> (compiler file 'msc1.cpp', line 1420)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Build Summary
-------------
00:01.122 - Failed - Debug Win32 - XMLDocCrash\XMLDocCrash.vcxproj

Total build time: 00:01.139

========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========


I will attach a sample project.

In the project I followed theese instructions:
properties - http://msdn.microsoft.com/en-us/library/yhfk0thd(v=VS.100).aspx
/doc - http://msdn.microsoft.com/en-us/library/ms173501.aspx
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling version

Visual Studio 2010 SP1

Steps to reproduce

1. Create a new win32 console application
2. go to the project properties of the new project to enable xml documentation files generation (Configuration Properties -> C/C++ -> Output Files -> set "Generate XML Documentation Files" to "Yes (/doc)"
3. code a simple class and add a C++ property like: __declspec(property(get=GetValue)) int IntValue;
=> compile -> everything is fine
4. add a comment just before the property that starts with 3 slashes like: /// foo
=> compiler crashes

Product Language

English

Operating System

Windows 7

Operating System Language

German

Actual results

compiler crash

Expected results

compiler does not crash
File Attachments
File Name Submitted By Submitted On File Size  
XMLDocCrash.zip 9/11/2011 687 KB
Sign in to post a comment.
Posted by Do Django on 9/21/2011 at 1:20 PM
Thanks!
Posted by Microsoft on 9/20/2011 at 3:19 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 MS-Moderator09 [Feedback Moderator] on 9/11/2011 at 8:13 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 9/11/2011 at 1:40 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)
Posted by Do Django on 9/11/2011 at 1:36 AM
The compiler will also crash if the comment starts with /**.
Btw, why do the comments not appear in the object browser?
Sign in to post a workaround.