PR c++/83394 - always_inline vs. noinline no longer diagnosed
authorMartin Sebor <msebor@redhat.com>
Tue, 19 Dec 2017 22:09:00 +0000 (22:09 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 19 Dec 2017 22:09:00 +0000 (15:09 -0700)
commit5837edca5cf5eb7cc45a2a61f69543264b50bbc8
tree4edb5b94d34e42be541d40917ea365d8ba308efd
parent0cbe950d2475c51d8df2cc3a5afd55ff537d25cc
PR c++/83394 - always_inline vs. noinline no longer diagnosed

PR c++/83394 - always_inline vs. noinline no longer diagnosed
PR c++/83322 - ICE: tree check: expected class ‘type’, have ‘exceptional’

gcc/cp/ChangeLog:

PR c++/83394
PR c++/83322
* decl2.c (cplus_decl_attributes): Look up member functions
in the scope of their class.

gcc/testsuite/ChangeLog:

PR c++/83394
* g++.dg/Wattributes-3.C: New test.
* g++.dg/Wattributes-4.C: New test.
* g++.dg/Wattributes-5.C: New test.

From-SVN: r255844
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/Wattributes-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/Wattributes-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/Wattributes-5.C [new file with mode: 0644]