diff options
Diffstat (limited to 'gcc-4.6')
-rw-r--r-- | gcc-4.6/gcc/cp/decl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc-4.6/gcc/cp/decl.c b/gcc-4.6/gcc/cp/decl.c index 69595a97b..e9713e982 100644 --- a/gcc-4.6/gcc/cp/decl.c +++ b/gcc-4.6/gcc/cp/decl.c @@ -9144,8 +9144,6 @@ grokdeclarator (const cp_declarator *declarator, the object as `const'. */ if (constexpr_p && innermost_code != cdk_function) { - if (type_quals & TYPE_QUAL_CONST) - error ("both %<const%> and %<constexpr%> cannot be used here"); if (type_quals & TYPE_QUAL_VOLATILE) error ("both %<volatile%> and %<constexpr%> cannot be used here"); type_quals |= TYPE_QUAL_CONST; |