diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2014-11-26 13:20:25 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-11-26 13:20:25 -0500 |
commit | 0e75e41f86d2396e85de8166cf8ec834ab2719f2 (patch) | |
tree | e2362ca092d0945cc8931f2dff84f220090f1b21 | |
parent | cabaf50ac511cdedd2710faf87c126996483c3e5 (diff) | |
download | gcc-0e75e41f86d2396e85de8166cf8ec834ab2719f2.zip gcc-0e75e41f86d2396e85de8166cf8ec834ab2719f2.tar.gz gcc-0e75e41f86d2396e85de8166cf8ec834ab2719f2.tar.bz2 |
comment fixes
From-SVN: r218094
-rw-r--r-- | gcc/cp/cp-tree.h | 2 | ||||
-rw-r--r-- | 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 19b7291..f1064e9 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 5748650..92c0417 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -790,7 +790,7 @@ store_init_value (tree decl, tree init, vec<tree, va_gc>** 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. */ |