forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cp-demangle.c (cplus_demangle_type): Fix function quals. (d_pointer_to_member_type): Simplify. gcc/cp/ * mangle.c (write_type): When writing a function type with function-cv-quals, don't add the unqualified type as a substitution candidate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197460 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
jason
committed
Apr 4, 2013
1 parent
ba12557
commit 862e5b6
Showing
8 changed files
with
77 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Before v8, we mistakenly treated an unqualified function type | ||
// as a substitution candidate for a function type with function-cv-quals. | ||
// Test for the conformant behavior. | ||
|
||
// { dg-options -fabi-version=0 } | ||
|
||
template <class T, class U> struct A { }; | ||
// { dg-final { scan-assembler "_Z1fP1AIKFvvEFvvEE" } } | ||
void f (A<void()const, void()> *){} | ||
// { dg-final { scan-assembler "_Z1gP1AIFvvEKFvvEE" } } | ||
void g (A<void(), void()const> *){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Before v8, we mistakenly treated an unqualified function type | ||
// as a substitution candidate for a function type with function-cv-quals. | ||
// Test for that for backward compatibility. | ||
|
||
// { dg-options -fabi-version=7 } | ||
|
||
template <class T, class U> struct A { }; | ||
// { dg-final { scan-assembler "_Z1fP1AIKFvvES0_E" } } | ||
void f (A<void()const, void()> *){} | ||
// { dg-final { scan-assembler "_Z1gP1AIFvvEKS0_E" } } | ||
void g (A<void(), void()const> *){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters