GNOME Bugzilla – Bug 691335
Enclosing scope of a forward declaration is lost.
Last modified: 2013-01-13 10:56:24 UTC
Created attachment 232956 [details] Class list view. The following code demonstrates the problem: #ifndef LOSTSCOPE_HPP #define LOSTSCOPE_HPP /// /// \brief A documented namespace 1. /// namespace Project1 { /// /// \brief The enclosing scope of for this class is lost. /// \tparam T The value type. /// \tparam A `true` if yes, `false` if no. /// template <typename T> class MyScopeIsLost; template <typename T> class MyScopeIsLost { }; } /// /// \brief A documented namespace 2. /// namespace Project2 { template <typename T> class MyScopeIsNotLost; /// /// \brief The enclosing scope of for this class is not lost. /// \tparam T The value type. /// \tparam A `true` if yes, `false` if no. /// template <typename T> class MyScopeIsNotLost { }; } #endif The scope of MyScopeIsLost is lost in the documentation (in every place). It can be seen in the attached screenshot. It has always been the issue (with previous versions as well), however, I could not find the source of the problem before. It happens with nested class scopes as well.
*** This bug has been marked as a duplicate of bug 686689 ***