]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/23842 (Incorrect access control context)
authorMark Mitchell <mark@codesourcery.com>
Tue, 13 Sep 2005 14:44:08 +0000 (14:44 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 13 Sep 2005 14:44:08 +0000 (14:44 +0000)
commit6493555fd370845f620a17553d2013a8acad2f93
tree963c8b8c471c5d3e0f0a9c9cb8a697bfc10d11f5
parent8abbec474896d0c2d341c18993a706fa731394cd
re PR c++/23842 (Incorrect access control context)

PR c++/23842
* pt.c (tsubst_default_argument): Do treat default argument
expressions as occurring in the context of the function called.

PR c++/23842
* g++.dg/template/access16.C: New test.

From-SVN: r104224
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/access16.C [new file with mode: 0644]