diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2017-10-31 13:09:09 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2017-10-31 13:09:09 -0400 |
commit | 12d0e3aa63ba77172a9d824294d2509ff78f2342 (patch) | |
tree | afd26591845ec5ed7f7913f8f4bacdab4958f7db /gcc/cp | |
parent | f26881e300b648e46ae89e24575fe493d772802f (diff) | |
download | gcc-12d0e3aa63ba77172a9d824294d2509ff78f2342.zip gcc-12d0e3aa63ba77172a9d824294d2509ff78f2342.tar.gz gcc-12d0e3aa63ba77172a9d824294d2509ff78f2342.tar.bz2 |
constexpr.c, pt.c: Adjust comments.
* constexpr.c, pt.c: Adjust comments.
* g++.dg/cpp1y/lambda-generic-69078-1.C: Remove #include.
From-SVN: r254272
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/constexpr.c | 3 | ||||
-rw-r--r-- | gcc/cp/pt.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c index 5919282..483f731 100644 --- a/gcc/cp/constexpr.c +++ b/gcc/cp/constexpr.c @@ -1269,8 +1269,7 @@ cxx_bind_parameters_in_call (const constexpr_ctx *ctx, tree t, { x = ctx->object; /* We don't use cp_build_addr_expr here because we don't want to - capture the object argument until we've chosen a non-static member - function. */ + capture the object argument during constexpr evaluation. */ x = build_address (x); } bool lval = false; diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 8b89ca9..326be33 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -5564,7 +5564,7 @@ push_template_decl_real (tree decl, bool is_friend) (TI_ARGS (tinfo), TI_ARGS (get_template_info (DECL_TEMPLATE_RESULT (tmpl))))) { - error ("template arguments to %qD do not match original" + error ("template arguments to %qD do not match original " "template %qD", decl, DECL_TEMPLATE_RESULT (tmpl)); if (!uses_template_parms (TI_ARGS (tinfo))) inform (input_location, "use %<template<>%> for" @@ -12195,7 +12195,7 @@ tsubst_function_decl (tree t, tree args, tsubst_flags_t complain, We also deal with the peculiar case: template <class T> struct S { - template <class U> friend void f(); + template <class U> friend void f(); }; template <class U> void f() {} template S<int>; |