diff options
author | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-09 08:00:58 +0000 |
---|---|---|
committer | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-09 08:00:58 +0000 |
commit | cc69d18d0bb47dbe032c79eeba3a09b1cdfe5d5e (patch) | |
tree | b383aaeeb1c561448687abde05efb6e54f000de6 /libstdc++-v3 | |
parent | dc8fbf65c09df63d005ee406d40e2cea2e0f6ec5 (diff) | |
download | gcc-cc69d18d0bb47dbe032c79eeba3a09b1cdfe5d5e.tar.gz |
PR c++/51027 - accepts alias-declaration without ';'
gcc/cp/
* parser.c (cp_parser_alias_declaration): Require ';' at the end
of the declaration.
libstdc++-v3/
* include/ext/pointer.h (rebind): Append missing ';'.
gcc/testsuite
* g++.dg/cpp0x/alias-decl-12.C: New test.
* g++.dg/ext/alias-decl-attr4.C: Append missing ';'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/pointer.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b8b6e358dce..4d4608e3625 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-11-09 Dodji Seketeli <dodji@redhat.com> + + PR c++/51027 + * include/ext/pointer.h (rebind): Append missing ';'. + 2011-11-09 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/stl_vector.h (vector::_Alloc_traits): Make private. diff --git a/libstdc++-v3/include/ext/pointer.h b/libstdc++-v3/include/ext/pointer.h index 45fed19993e..8b33740f25b 100644 --- a/libstdc++-v3/include/ext/pointer.h +++ b/libstdc++-v3/include/ext/pointer.h @@ -579,7 +579,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<typename _Up> using rebind = typename __gnu_cxx::_Pointer_adapter< - typename pointer_traits<_Storage_policy>::rebind<_Up>> + typename pointer_traits<_Storage_policy>::rebind<_Up>>; static pointer pointer_to(typename pointer::reference __r) noexcept { return pointer(std::addressof(__r)); } |