Not necessarily a bug, but.....

Peter Leven leven@lpr.e-technik.tu-muenchen.de
Fri Mar 27 13:49:00 GMT 1998


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



More information about the Gcc-bugs mailing list