]> gcc.gnu.org Git - gcc.git/commit
re PR c++/15742 ('noreturn' attribute ignored in method of template functions.)
authorMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 31 May 2004 21:24:31 +0000 (21:24 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 31 May 2004 21:24:31 +0000 (21:24 +0000)
commitc8b2e872a83dd3869ffc4443201a1f3096bc3a6c
tree5e0812c5ac7d5a81ea49d40fed31c165f91fb9df
parent7c9fee34e5688d79d96db0e2b2e56d7273cb4335
re PR c++/15742 ('noreturn' attribute ignored in method of template functions.)

PR c++/15742
* call.c (build_over_call): Set
current_function_returns_abnormally even in template functions.

PR c++/15696
* cp-tree.h (invalid_nonstatic_memfn_p): New function.
* cvt.c (convert_to_void): Use it.
* typeck.c (invalid_nonstatic_memfn_p): New function.
(decay_conversion): Use it.

PR c++/15625
* pt.c (tsubst_decl): Set DECL_FRIEND_CONTEXT for instantiated
templates.

PR c++/15629
* name-lookup.c (arg_assoc_class): Do not find template
specializations.

PR c++/15209
* tree.c (lvalue_p_1): Only consider the right-hand side of "."
expressions when determining whether or not an express is packed.

PR c++/15742
* g++.dg/warn/Wreturn-1.C: New test.

PR c++/15696
* g++.dg/expr/ptrmem5.C: New test.

PR c++/15625
* g++.dg/template/friend27.C: New test.

PR c++/15629
* g++.dg/template/friend28.C: New test.
* g++.dg/template/friend.C: Do not depend on <iostream>.  Add
error message.

PR c++/15209
* g++.dg/ext/packed3.C: Remove bogus error.
* g++.dg/ext/packed4.C: Remove bogus check.
* g++.dg/ext/packed6.C: New test.

From-SVN: r82499
15 files changed:
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/expr/ptrmem5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/packed3.C
gcc/testsuite/g++.dg/ext/packed4.C
gcc/testsuite/g++.dg/ext/packed6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/friend.C
gcc/testsuite/g++.dg/template/friend27.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/friend28.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wreturn-1.C [new file with mode: 0644]
This page took 0.062038 seconds and 5 git commands to generate.