From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18629 invoked by alias); 9 Jan 2010 21:15:13 -0000 Received: (qmail 18318 invoked by uid 48); 9 Jan 2010 21:15:01 -0000 Date: Sat, 09 Jan 2010 21:15:00 -0000 Message-ID: <20100109211501.18317.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: "ian at airs 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/msg01087.txt.bz2 ------- Comment #8 from ian at airs dot com 2010-01-09 21:15 ------- Oh sorry, I think the version I tested with was too old. I think this broke with Simon's patch of 2007-01-29. I bet this patch fixes it: Index: cp-demangle.c =================================================================== --- cp-demangle.c (revision 155776) +++ cp-demangle.c (working copy) @@ -4777,7 +4777,7 @@ d_demangle (const char *mangled, int opt return NULL; } - *palc = dgs.allocation_failure ? 1 : 0; + *palc = dgs.allocation_failure ? 1 : dgs.alc; return dgs.buf; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42230