- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Look at this code:
double x;
x /* comment */ += 3 ; //OK with INTEL compiler
x /* comment */ -= 3 ; //OK with INTEL compiler
x /* comment */ *= 3 ; //OK with INTEL compiler
x /* comment */ /= 3 ;//Error with INTEL 11.1.054
//The code Line below isidentical to the above, but with the commentstripped. It then works!
x /= 3 ; //OK with INTEL compiler
----------------------------------------------------
The compiler generates this error message:
error: expected an expression
1> x /* comment */ /= 3 ; //Error with INTEL 11.1.054
1> ^
-------------------------------------------------------
All code above works with Microsoft C++ 2008
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sure enough, I see the same behavior you describe. Thanks for pointing that out. I'll submit an issue to our bug tracking system and report back here when I have more info.
Thanks!
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ha! That looks like the compiler is eating the space between */ and /=, unlike this forum software which keeps adding them everywhere :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, an issue has been submitted for that space problem thing. I don't know when it will be fixed, but I did request higher priority for it.
Dale

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page