This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11887] [3.4 Regression] Problems with allocator::rebind::other
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2003 00:52:59 -0000
- Subject: [Bug c++/11887] [3.4 Regression] Problems with allocator::rebind::other
- References: <20030812000103.11887.poschmid@lbl.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11887
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-08-12 00:52:58
date| |
Summary|Problems with |[3.4 Regression] Problems
|allocator::rebind::other |with
| |allocator::rebind::other
Target Milestone|--- |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-12 00:52 -------
I can confirm this on the mainline (20030811).
With the mainline (20030131) Yes that is old GCC rejected this with:
pr11887.cc: In function `void f()':
pr11887.cc:6: error: `template<class _Tp1> struct allocator<int>::rebind' is
private
pr11887.cc:14: error: within this context
pr11887.cc:15: error: `allocator<int>' is not a namespace
pr11887.cc:6: error: `template<class _Tp1> struct allocator<int>::rebind' is
private
pr11887.cc:15: error: within this context
With 3.1, GCC also reject this:
pr11887.cc: In function `void f()':
pr11887.cc:15: parse error before `typename'
It is a regression if this code is valid or invalid since GCC ICE on the mainline.