This is the mail archive of the gcc-bugs@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]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]