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]

Not necessarily a bug, but.....


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


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