This is the mail archive of the gcc-patches@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]

Re: [C++ PATCH] [PR8929] Detect spurious template header in memberdefinition


Gabriel Dos Reis wrote:
Nathan Sidwell <nathan@codesourcery.com> 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.


nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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