empty string correctly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78353
138bc75d-0d04-0410-961f-
82ee72b054a4
2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
+ * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
+ empty string correctly.
+
* cp-demangle.c (__cxa_demangle): It is not an error if status is
not NULL. It is an error if the mangled name is the same as a
built-in type name.
internal built-in type names are a single lower case character.
Frankly, this simplistic disambiguation doesn't make sense to me,
but it is documented, so we implement it here. */
- if (mangled_name[1] == '\0'
- && IS_LOWER (mangled_name[0])
+ if (IS_LOWER (mangled_name[0])
+ && mangled_name[1] == '\0'
&& cplus_demangle_builtin_types[mangled_name[0] - 'a'].name != NULL)
{
if (status != NULL)