Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2004

Tip: Looking for answers? Try searching our database.

internal compiler error msvc 7.1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob - 06 Nov 2004 01:02 GMT
The following causes an internal compiler error:

void f (int &a)
{
 int (const &b) = a;
}

(Yes I know it's not correct c++).

Rob.

------ Build started: Project: glsl, Configuration: Debug Win32 ------

Compiling...

crash.cpp

[...]\sources\crash.cpp(4) : fatal error C1001: 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

Build log was saved at file://[...]\Debug\BuildLog.htm

[...] - 1 error(s), 0 warning(s)

---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped
David Lowndes - 06 Nov 2004 10:40 GMT
>The following causes an internal compiler error:
>
>void f (int &a)
>{
>  int (const &b) = a;
>}

Rob,

If that's all it takes in VC7.1 (I've not tried it), it appears to be
fixed for VS2005, the beta 1 compiler reports:

error C2143: syntax error : missing ')' before 'const'
error C2059: syntax error : ')'

Dave
Signature

MVP VC++ FAQ: http://www.mvps.org/vcfaq


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.