From adb18e76f37e3e1667ac0d9ff40b76aaa384c461 Mon Sep 17 00:00:00 2001 From: paolo Date: Tue, 26 Feb 2013 14:04:47 +0000 Subject: [PATCH] 2013-02-26 David Binderman 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 | 5 +++++ gcc/cp/decl.c | 3 +-- 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 + + PR c++/55632 + * decl.c (grokdeclarator): Tidy publicp assignment. + 2013-02-25 Aldy Hernandez 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, -- 2.7.4