Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 BUG: Placement of parentheses causes problems

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
guest Posted - Aug 05 2010 : 09:27:51 AM
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;
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Aug 06 2010 : 1:29:20 PM
I am seeing the same effect here. Thank you for the clear description and the text version of the snippet.

case=48417
guest Posted - Aug 06 2010 : 10:23:39 AM
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;
}
accord Posted - Aug 06 2010 : 03:53:06 AM
Thank you for the clear example.
Can you please also post the source in text format so it is easier to investigate.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000