[Bug c++/59498] Pack expansion error in template alias

2014-05-03 Thread rscrihf at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59498

--- Comment #1 from Roy Crihfield rscrihf at gmail dot com ---
Getting the same behavior on 4.9.0 as stable release.

Rewriting the code to use a struct succeeds:

template typename T, typename ...
struct alias { using type = T; };

template typename ...T
using variadic_alias = typename aliasT...::type;


[Bug libstdc++/60278] New: string::erase() (and other containers) does not take const_iterators

2014-02-19 Thread rscrihf at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60278

Bug ID: 60278
   Summary: string::erase() (and other containers) does not take
const_iterators
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: rscrihf at gmail dot com

As of C++11, std::string::erase takes const_iterators in its signature. As of
4.8.2, this isn't the case. 

I see other bugs referencing similar issues - for instance,
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54577 is marked as FIXED, but I see
the signature of deque::erase is still wrong.