From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12772 invoked by alias); 9 Jan 2010 20:51:15 -0000 Received: (qmail 12682 invoked by uid 48); 9 Jan 2010 20:51:05 -0000 Date: Sat, 09 Jan 2010 20:51:00 -0000 Message-ID: <20100109205105.12681.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug other/42230] abi::__cxa_demangle fails to return the length of the decoded name In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg01083.txt.bz2 ------- Comment #5 from paolo dot carlini at oracle dot com 2010-01-09 20:51 ------- I have in front of me the documentation in cxxabi.h and something like the below should pass, AFAICS: #include #include #include int main() { std::size_t length = 0; int cc; char* ret = abi::__cxa_demangle("e", 0, &length, &cc); assert( (cc < 0 && !ret) || (ret && length) ); } -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paolo dot carlini at oracle | |dot com Status|WAITING |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-01-09 20:51:05 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42230