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 c++/63658] [4.9/5 Regression] Using class reference as template parameter causes compilation to fail


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658

Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> ---
The problem seems not to depend on the friend declaration, therefore a more
reduced example code can be formed:

//------------------
struct Descriptor {};

template <Descriptor & D>
struct foo
{
  void size ();
};

Descriptor g_descriptor = {};

template<> void foo<g_descriptor>::size()
{
}
//------------------

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