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] [PR14008] Improve diagnostic on invalid type names(regression 3.4/3.5)


Giovanni Bajo wrote:

! if (TREE_CODE (decl) == TEMPLATE_DECL)
! {
! error ("invalid use of template-name `%E' without an argument list",
! decl);
! }


The coding standards say not to use curly-braces around a single statement.

+ static tree
+ cp_parser_make_typename_type (cp_parser *parser, tree scope, tree id)


This new function needs a comment.

With those changes, this patch is OK for mainline, but not for GCC 3.4. It strikes me as just a little too risky, and without enough payoff to justify it.

Thanks,

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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