From 0e75e41f86d2396e85de8166cf8ec834ab2719f2 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 26 Nov 2014 13:20:25 -0500 Subject: [PATCH] comment fixes From-SVN: r218094 --- gcc/cp/cp-tree.h | 2 +- gcc/cp/typeck2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 19b72919ef4..f1064e9ae24 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -82,7 +82,7 @@ c-common.h, not after. CONVERT_EXPR_VBASE_PATH (in CONVERT_EXPR) OVL_ARG_DEPENDENT (in OVERLOAD) PACK_EXPANSION_LOCAL_P (in *_PACK_EXPANSION) - TINFO_RECHECK_ACCESS_P (in TEMPLATE_INFO) + TINFO_HAS_ACCESS_ERRORS (in TEMPLATE_INFO) SIZEOF_EXPR_TYPE_P (in SIZEOF_EXPR) 1: IDENTIFIER_VIRTUAL_P (in IDENTIFIER_NODE) TI_PENDING_TEMPLATE_FLAG. diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index 5748650ccf4..92c04178c21 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -790,7 +790,7 @@ store_init_value (tree decl, tree init, vec** cleanups, int flags) value = extend_ref_init_temps (decl, value, cleanups); - /* In C++0x constant expression is a semantic, not syntactic, property. + /* In C++11 constant expression is a semantic, not syntactic, property. In C++98, make sure that what we thought was a constant expression at template definition time is still constant and otherwise perform this as optimization, e.g. to fold SIZEOF_EXPRs in the initializer. */ -- 2.30.2