re PR c++/55632 (trunk/gcc/cp/decl.c:10614: strange line of code)
authorDavid Binderman <dcb314@hotmail.com>
Tue, 26 Feb 2013 14:04:47 +0000 (14:04 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 26 Feb 2013 14:04:47 +0000 (14:04 +0000)
2013-02-26  David Binderman  <dcb314@hotmail.com>

PR c++/55632
* decl.c (grokdeclarator): Tidy publicp assignment.

From-SVN: r196284

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

index 7ab31f3e8ad694c921de5e817dc8f08ad20b5a01..9290413c283fa0e85b17e6be341bf5556ea37175 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 661969f441cc05d748e84c004deb4b24937f568c..a90044a488aeb109122d3106c60c71dc105632c3 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,