Re: compile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Yamin,

As per <http://www.geocrawler.com/archives/3/254/2003/2/6100/10311290/>, your code is probably doing something naughty, like this:

int i;
struct s { ~s() { i++; } };

int main(int a)
{
  switch(a)
  {
    case 0: s b;
    case 1: s c = b;
  }
  return 0;
}

The fix is:  don't do that.  It's not legal C++.

HTH,
--Eljay 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux