2013-02-26 David Binderman <dcb314@hotmail.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Feb 2013 14:04:47 +0000 (14:04 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Feb 2013 14:04:47 +0000 (14:04 +0000)
PR c++/55632
* decl.c (grokdeclarator): Tidy publicp assignment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196284 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index 7ab31f3..9290413 100644 (file)
@@ -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
index 661969f..a90044a 100644 (file)
@@ -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,