[Bug libstdc++/24530] throw catch clause does not accept string

2005-10-25 Thread alienforever at gmail dot com
--- Comment #2 from alienforever at gmail dot com 2005-10-25 21:52 --- Is the following TC invalid too? #include #define N 5 void func_2( ) { int n = N; char aCvla[n]; for( ; n >= 0; n-- ) aCvla[n] = n+'A'; throw aCvla; } int main() { try { func_2(); } catch ( char a

[Bug libstdc++/24530] throw catch clause does not accept string

2005-10-25 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-25 21:42 --- Not a bug, you are throwing a reference to a local variable, how do you expect that to work? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added