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++/21336] [3.4/4.0/4.1 Regression] Internal compiler error when using custom new operators


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-02 12:21 -------
Confirmed, a 3.4 regression also.
Reduced testcase:
typedef __SIZE_TYPE__ size_t;
template<class _T> inline void* operator new( size_t Size, _T&);
struct B {
        int a;
        int* m() {
                return new(a) int;
        }
};
B* n() {
 return new B();
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.4.0 4.0.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-02 12:21:41
               date|                            |
            Summary|Internal compiler error when|[3.4/4.0/4.1 Regression]
                   |using custom new operators  |Internal compiler error when
                   |                            |using custom new operators
   Target Milestone|---                         |3.4.4


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


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