[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
placement new exception bug
From: |
Michael D. Berger & Rosalie A. Clavez |
Subject: |
placement new exception bug |
Date: |
Thu, 20 Feb 2003 17:58:42 -0500 |
Under Cygwin, gcc (GCC) 3.2 20020927 (prerelease)
In very complex template code:
func(...,TYP*& pRevEnd,...)
{
...
TYP* pIn = ...;
new (--pRevEnd) TYP(*--pIn);
...
}
if TYP::TYP(const TYP&) throws, then pRevEnd is decremented
twice rather than once.
Successful work around:
--pRevEnd;
new (pRevEnd) TYP(*--pIn);
Mike.
--
Michael D. Berger
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- placement new exception bug,
Michael D. Berger & Rosalie A. Clavez <=