re PR c++/66254 (Member function shadowing enum classes)
2015-06-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/66254 * g++.dg/cpp0x/scoped_enum5.C: New. From-SVN: r224851
This commit is contained in:
parent
1222f22bd8
commit
171561ca33
2 changed files with 42 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-06-23 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/66254
|
||||
* g++.dg/cpp0x/scoped_enum5.C: New.
|
||||
|
||||
2015-06-23 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/66636
|
||||
|
|
37
gcc/testsuite/g++.dg/cpp0x/scoped_enum5.C
Normal file
37
gcc/testsuite/g++.dg/cpp0x/scoped_enum5.C
Normal file
|
@ -0,0 +1,37 @@
|
|||
// PR c++/66254
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
namespace boost {
|
||||
namespace http {
|
||||
|
||||
enum class read_state
|
||||
{
|
||||
empty
|
||||
};
|
||||
|
||||
template<class Socket>
|
||||
class basic_socket
|
||||
{
|
||||
public:
|
||||
http::read_state read_state() const;
|
||||
|
||||
void async_read_request();
|
||||
|
||||
private:
|
||||
http::read_state istate;
|
||||
};
|
||||
|
||||
template<class Socket>
|
||||
read_state basic_socket<Socket>::read_state() const
|
||||
{
|
||||
return istate;
|
||||
}
|
||||
|
||||
template<class Socket>
|
||||
void basic_socket<Socket>::async_read_request()
|
||||
{
|
||||
read_state::empty;
|
||||
}
|
||||
|
||||
} // namespace boost
|
||||
} // namespace http
|
Loading…
Add table
Reference in a new issue