blob: 2e65718b67957f8f304c26cfc2bc95750944a933 [file] [log] [blame]
// { dg-do assemble }
// Origin: Carl Nygard <cnygard@bellatlantic.net>
template <class RT>
class Test {
public:
Test(const RT& c = RT()) {} // { dg-error "reference to void" }
};
void f ()
{
Test<void> c; // { dg-message "required" }
}