From: David Binderman Date: Tue, 26 Feb 2013 14:04:47 +0000 (+0000) Subject: re PR c++/55632 (trunk/gcc/cp/decl.c:10614: strange line of code) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecf3abb99a8794aaca5c304d483c0d12c0c04ea8;p=gcc.git re PR c++/55632 (trunk/gcc/cp/decl.c:10614: strange line of code) 2013-02-26 David Binderman PR c++/55632 * decl.c (grokdeclarator): Tidy publicp assignment. From-SVN: r196284 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7ab31f3e8ad..9290413c283 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 661969f441c..a90044a488a 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,