[Bug c++/11887] [3.4 Regression] Problems with allocator::rebind::other

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Aug 12 00:52:00 GMT 2003


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.



More information about the Gcc-bugs mailing list