[Bug c++/59707] Crash when using std::map with template class

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 7 09:44:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59707

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-01-07
            Version|unknown                     |4.8.2
            Summary|[4.8.2] Crash when using    |Crash when using std::map
                   |std::map with template      |with template class
                   |class                       |
     Ever confirmed|0                           |1
      Known to fail|                            |4.7.4, 4.8.2, 4.9.0

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reduced:

struct T {
    template<class D> operator D*() const;
};

void f(T x) {
    x < x;
}

4.6 didn't ICE but incorrectly compiled the code



More information about the Gcc-bugs mailing list