This is the mail archive of the
mailing list for the GCC project.
Re: [C++ PATCH] [PR8929] Detect spurious template header in member definition
Nathan Sidwell <email@example.com> writes:
| Gabriel Dos Reis wrote:
| > Nathan Sidwell <firstname.lastname@example.org> writes:
| > | > + if (processing_specialization
| > | > + && template_class_depth (context) == 0
| > | > + && CLASSTYPE_TEMPLATE_SPECIALIZATION (context))
| > | > + error ("definitions of members of explicitly-specialized "
| > | > + "classes do not require %<template <>%>");
| > | | Might I suggest
| > | "template header not allowed in member definition of explicitly specialized class"
| > I think "template header" is more a C++ compiler writer than C++
| the phrase 'template header' is already used in other error messages.
yes, we have lots of obscure messages. It does not mean, we need more.