This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24686] [4.0/4.1 Regression] ICE when building a variation of NMSTL



------- Comment #6 from pinskia at gcc dot gnu dot org  2005-11-06 00:18 -------
Confirmed, reduced testcase:
struct string {
   struct _Alloc_hider {
   ~_Alloc_hider();
  };
    mutable _Alloc_hider _M_dataplus;
  };
  template<class T> string to_string(const T& t);
  struct debug_msg {
    debug_msg(int);
    template<class T>  debug_msg& operator << (const T& t);
  };
  struct debug {
    static debug& get() {
}
    bool operator ^ (const debug_msg& msg);
  };
  int f();
  int i;
  void set_handler(int fd) {
    (i >= 1)&& debug::get() ^ debug_msg(({
 static int l = f();
 l;
}
 ))  << to_string(1);
  }


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-06 00:18:05
               date|                            |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]