OSDN Git Service

/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2012 09:44:08 +0000 (09:44 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2012 09:44:08 +0000 (09:44 +0000)
commit245d37272b71bb409c4d79e2b4d1eb56583661d9
tree2862f6b164d5a15639114c27d3cb1153d64a8bf6
parentfde3b594648f36626fa9ae322d0b44287400a6bb
/cp
2012-08-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/20420
* name-lookup.c (supplement_binding_1): Handle specially enums
only in class templates.
(validate_nonmember_using_decl): Enforce 7.3.3/10 about duplicate
using declarations at function scope.

/testsuite
2012-08-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/20420
* g++.dg/lookup/using53.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190618 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/using53.C [new file with mode: 0644]