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]

Internal Error, Test<void> instantiation




Here is a trivial problem, but the compiler generates an Internal
error...

template <class RT>
class Test {
   Test(const RT& rt = RT()) {}
};


The '= RT()' part is what causes the compiler error.  without it, it
generates normal messages.

Regards,
Carl

bug2.tar.gz


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