diff options
author | James Lyon <jameslyon0@googlemail.com> | 2010-09-10 22:41:28 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2010-09-10 22:41:28 +0000 |
commit | 48255616066333ad0b71e5fc55afaf847f7b1fd5 (patch) | |
tree | 4805f228224e0a15b60b8cd41d3f2fb2d382716f /libiberty | |
parent | bc2c4cb45ec9f5ad78cbe21711f053c22c41a29b (diff) | |
download | gcc-48255616066333ad0b71e5fc55afaf847f7b1fd5.zip gcc-48255616066333ad0b71e5fc55afaf847f7b1fd5.tar.gz gcc-48255616066333ad0b71e5fc55afaf847f7b1fd5.tar.bz2 |
cp-demangle.c (d_find_pack): Add case for DEMANGLE_COMPONENT_LAMBDA.
2010-09-10 James Lyon <jameslyon0@googlemail.com>
http://sourceware.org/bugzilla/show_bug.cgi?id=11572
* cp-demangle.c (d_find_pack): Add case for
DEMANGLE_COMPONENT_LAMBDA.
* testsuite/demangle-expected: Add regression test.
From-SVN: r164203
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 33 | ||||
-rw-r--r-- | libiberty/cp-demangle.c | 1 | ||||
-rw-r--r-- | libiberty/testsuite/demangle-expected | 5 |
3 files changed, 39 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index c465437..7004f86 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,36 @@ +2010-09-10 James Lyon <jameslyon0@googlemail.com> + + http://sourceware.org/bugzilla/show_bug.cgi?id=11572 + * cp-demangle.c (d_find_pack): Add case for + DEMANGLE_COMPONENT_LAMBDA. + * testsuite/demangle-expected: Add regression test. + +diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c +index d2d15e9..39c8cc0 100644 +--- a/libiberty/cp-demangle.c ++++ b/libiberty/cp-demangle.c +@@ -3480,6 +3480,7 @@ d_find_pack (struct d_print_info *dpi, + case DEMANGLE_COMPONENT_PACK_EXPANSION: + return NULL; + ++ case DEMANGLE_COMPONENT_LAMBDA: + case DEMANGLE_COMPONENT_NAME: + case DEMANGLE_COMPONENT_OPERATOR: + case DEMANGLE_COMPONENT_BUILTIN_TYPE: +diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected +index 15a0fe7..0085564 100644 +--- a/libiberty/testsuite/demangle-expected ++++ b/libiberty/testsuite/demangle-expected +@@ -4052,3 +4052,8 @@ prot.lock.update + --format=gnu-v3 + DFA + DFA ++# ++# http://sourceware.org/bugzilla/show_bug.cgi?id=11572 ++--format=auto ++_ZN3Psi7VariantIIcPKcEE5visitIIRZN11VariantTest9TestVisit11test_methodEvEUlS2_E0_RZNS6_11test_methodEvEUlcE1_RZNS6_11test_methodEvEUlNS_4NoneEE_EEENS_13VariantDetail19SelectVisitorResultIIDpT_EE4typeEDpOSG_ ++Psi::VariantDetail::SelectVisitorResult<VariantTest::TestVisit::test_method()::{lambda(char const*)#2}&, VariantTest::TestVisit::test_method()::{lambda(char)#3}&, VariantTest::TestVisit::test_method()::{lambda(Psi::None)#1}&>::type Psi::Variant<char, char const*>::visit<VariantTest::TestVisit::test_method()::{lambda(char const*)#2}&, VariantTest::TestVisit::test_method()::{lambda(char)#3}&, VariantTest::TestVisit::test_method()::{lambda(Psi::None)#1}&>((VariantTest::TestVisit::test_method()::{lambda(Psi::None)#1}&&&)...) + 2010-09-08 Tristan Gingold <gingold@adacore.com> PR 44001 diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index d2d15e9..39c8cc0 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -3480,6 +3480,7 @@ d_find_pack (struct d_print_info *dpi, case DEMANGLE_COMPONENT_PACK_EXPANSION: return NULL; + case DEMANGLE_COMPONENT_LAMBDA: case DEMANGLE_COMPONENT_NAME: case DEMANGLE_COMPONENT_OPERATOR: case DEMANGLE_COMPONENT_BUILTIN_TYPE: diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected index 15a0fe7..0085564 100644 --- a/libiberty/testsuite/demangle-expected +++ b/libiberty/testsuite/demangle-expected @@ -4052,3 +4052,8 @@ prot.lock.update --format=gnu-v3 DFA DFA +# +# http://sourceware.org/bugzilla/show_bug.cgi?id=11572 +--format=auto +_ZN3Psi7VariantIIcPKcEE5visitIIRZN11VariantTest9TestVisit11test_methodEvEUlS2_E0_RZNS6_11test_methodEvEUlcE1_RZNS6_11test_methodEvEUlNS_4NoneEE_EEENS_13VariantDetail19SelectVisitorResultIIDpT_EE4typeEDpOSG_ +Psi::VariantDetail::SelectVisitorResult<VariantTest::TestVisit::test_method()::{lambda(char const*)#2}&, VariantTest::TestVisit::test_method()::{lambda(char)#3}&, VariantTest::TestVisit::test_method()::{lambda(Psi::None)#1}&>::type Psi::Variant<char, char const*>::visit<VariantTest::TestVisit::test_method()::{lambda(char const*)#2}&, VariantTest::TestVisit::test_method()::{lambda(char)#3}&, VariantTest::TestVisit::test_method()::{lambda(Psi::None)#1}&>((VariantTest::TestVisit::test_method()::{lambda(Psi::None)#1}&&&)...) |