This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Not necessarily a bug, but.....
- To: egcs-bugs at cygnus dot com
- Subject: Not necessarily a bug, but.....
- From: Peter Leven <leven at lpr dot e-technik dot tu-muenchen dot de>
- Date: Thu, 26 Mar 1998 20:48:56 +0100
- Reply-To: leven at lpr dot e-technik dot tu-muenchen dot de
I have noticed a small detail in the header file "exception" (generally
installed in
/path/to/compiler/lib/gcc-lib/<target arch>/<compiler version>/include
that is not necessarily a bug. The problem is the following:
==================== file "exception" ====================
// Exception Handling support header for -*- C++ -*-
// Copyright (C) 1995, 1996 Free Software Foundation
#ifndef __EXCEPTION__
#define __EXCEPTION__
#pragma interface "exception"
extern "C++" {
#if 0
namespace std {
#endif
// < .... > stuff deleted
} // extern "C++"
#if 0
} // namespace std
#endif
#endif
==================== end file "exception" ====================
Technically speaking, the "} // namespace std" should occur before
"} // extern "C++"". This generally won't cause a problem, even when
namespaces are supported, as long as nothing is put between the
two '}'.
--
**********************************************************************
* Peter Leven * p-leven@uiuc.edu *
** Lehrstuhl fuer Prozessrechner * Beckman Institute **
** Technische Universitaet Muenchen * Universitaet Illinois **
* http://www.uiuc.edu/ph/www/p-leven * *
**********************************************************************