This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/24530] throw catch clause does not accept string
- From: "alienforever at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Oct 2005 21:52:19 -0000
- Subject: [Bug libstdc++/24530] throw catch clause does not accept string
- References: <bug-24530-11589@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from alienforever at gmail dot com 2005-10-25 21:52 -------
Is the following TC invalid too?
#include <stdio.h>
#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 aCA[N] ) {
int n = N-1;
for( ; n >= 0; n-- ) if( aCA[n] != n+'A' ) { printf("error\n"); }
}
}
--
alienforever at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24530