This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33709] [4.3 Regression] Type verification failure with new expression
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2007 00:49:04 -0000
- Subject: [Bug c++/33709] [4.3 Regression] Type verification failure with new expression
- References: <bug-33709-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-10-28 00:49 -------
(void) (((struct Tuple *) this)->base = TARGET_EXPR <D.2023, (struct
ErrorInfo[1] *) operator new [] (4)>;, try
Note, this is not related to templates, you can reproduce the ICE with the
following source too (I think ErrorInfo just needs to be a non-POD):
class ErrorInfo {
virtual void getErrorMessage();
};
struct Tuple {
ErrorInfo* base;
void AllocateMoreSpace(unsigned size) {
base = (new ErrorInfo[1]) - size;
}
};
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33709