aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Binderman <dcb314@hotmail.com>2013-02-26 14:04:47 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2013-02-26 14:04:47 +0000
commitecf3abb99a8794aaca5c304d483c0d12c0c04ea8 (patch)
tree59824a46b9672b6737f82b9aa35dd95654e03d9d
parent6f2d959b9e7774bf79e3e8fb33143e2d980691c4 (diff)
downloadgcc-ecf3abb99a8794aaca5c304d483c0d12c0c04ea8.zip
gcc-ecf3abb99a8794aaca5c304d483c0d12c0c04ea8.tar.gz
gcc-ecf3abb99a8794aaca5c304d483c0d12c0c04ea8.tar.bz2
re PR c++/55632 (trunk/gcc/cp/decl.c:10614: strange line of code)
2013-02-26 David Binderman <dcb314@hotmail.com> PR c++/55632 * decl.c (grokdeclarator): Tidy publicp assignment. From-SVN: r196284
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 7ab31f3..9290413 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-26 David Binderman <dcb314@hotmail.com>
+
+ PR c++/55632
+ * decl.c (grokdeclarator): Tidy publicp assignment.
+
2013-02-25 Aldy Hernandez <aldyh@redhat.com>
PR c++/56419
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 661969f..a90044a 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -10634,9 +10634,8 @@ grokdeclarator (const cp_declarator *declarator,
}
}
- /* Record presence of `static'. */
+ /* Record whether the function is public. */
publicp = (ctype != NULL_TREE
- || storage_class == sc_extern
|| storage_class != sc_static);
decl = grokfndecl (ctype, type, original_name, parms, unqualified_id,