Author Topic: cc problem  (Read 8146 times)

Offline blueshake

  • Regular
  • ***
  • Posts: 459
cc problem
« on: September 25, 2009, 03:57:58 pm »
hello,
I found a problem about cc.
here are the test codes.
Code
#include <iostream>

using namespace std;
void fu(int aa, int bb)
{
    if(|)
}
int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

in the | position (notice there is nothing between "(" and "aa"),if you type aa,cc get nothing.
but there is a whitespace between them ,cc worked.
see my attachment.


patch is expected.

[attachment deleted by admin]
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6025
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: cc problem
« Reply #1 on: September 25, 2009, 05:40:11 pm »
I can confirm this bug.
Also, add related topic: http://forums.codeblocks.org/index.php/topic,10966.0.html
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6025
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: cc problem
« Reply #2 on: September 26, 2009, 09:55:47 am »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.