Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 BUG: Placement of parentheses causes problems
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

guest
Junior Member

15 Posts

Posted - Aug 05 2010 :  09:27:51 AM  Show Profile  Reply with Quote
This is an example of a few cases where parentheses cause symbols to not be resolved correctly (seen by the red underlines.)



VA_X.dll file version 10.6.1827.0  built 2010.06.11
DevEnv.exe version 9.0.30729.1
msenv.dll version 9.0.30729.1
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.5512
Windows XP 5.1 Build 2600 Service Pack 3
4 processors (x86)

Platform: Win32
Stable Includes:
c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include;
c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\include;
C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include;
C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include;
C:\\Program Files\\Rogue Wave\\__Stingray Studio 10.1\\Include;
C:\\Program Files\\Rogue Wave\\__Stingray Studio 10.1\\Regex\\Include;
C:\\Program Files\\Rogue Wave\\__Stingray Studio 10.1\\RWUXTheme\\Include;

Other Includes:

Stable Source Directories:
c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfc;
c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfcm;
c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\atl;
c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\crt\\src;
C:\\Program Files\\Rogue Wave\\Stingray Studio 10.1\\Src;
C:\\Program Files\\Rogue Wave\\Stingray Studio 10.1\\Regex\\Src;
C:\\Program Files\\Rogue Wave\\Stingray Studio 10.1\\RWUXTheme\\Src;

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 06 2010 :  03:53:06 AM  Show Profile  Reply with Quote
Thank you for the clear example.
Can you please also post the source in text format so it is easier to investigate.

Edited by - accord on Aug 06 2010 03:54:30 AM
Go to Top of Page

guest
Junior Member

15 Posts

Posted - Aug 06 2010 :  10:23:39 AM  Show Profile  Reply with Quote
class Test
{
   public:
      Test &self(void)
      {
         return *this;
      }

      Test &operator[](int)
      {
         return self();
      }
};

int main(void)
{
   Test()[0][0].self();
   (Test()[0][0]).self();
   ((Test()[0])[0]).self();

   (Test())[0].self();
   (Test()[0])[0].self();

   return 0;
}
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 06 2010 :  1:29:20 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description and the text version of the snippet.

case=48417
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000