This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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 Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |