aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2012-05-25 17:09:49 +0200
committerUros Bizjak <uros@gcc.gnu.org>2012-05-25 17:09:49 +0200
commit305c089a9f8347470aa79f7dabed0252c9f83cfa (patch)
treeac70acdfd10dc3fb772ba2dd1d15232711113da5 /gcc
parenta295fa90c3b5f2cb0ecc1c15cc44cdf40bf405b7 (diff)
downloadgcc-305c089a9f8347470aa79f7dabed0252c9f83cfa.zip
gcc-305c089a9f8347470aa79f7dabed0252c9f83cfa.tar.gz
gcc-305c089a9f8347470aa79f7dabed0252c9f83cfa.tar.bz2
* decl.c: Revert unwanted commit.
From-SVN: r187886
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/decl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 14a6a40..d883da6 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -9803,8 +9803,7 @@ grokdeclarator (const cp_declarator *declarator,
clones. */
DECL_ABSTRACT (decl) = 1;
}
- else if (current_class_type
- && constructor_name_p (unqualified_id, current_class_type))
+ else if (constructor_name_p (unqualified_id, current_class_type))
permerror (input_location, "ISO C++ forbids nested type %qD with same name "
"as enclosing class",
unqualified_id);