Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d6850483
Commit
d6850483
authored
Apr 12, 2010
by
Jason Merrill
Committed by
Jason Merrill
Apr 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* call.c (type_decays_to): Call cv_unqualified for non-class type.
From-SVN: r158240
parent
9d809e8f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
0 deletions
+25
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/call.c
+2
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce2.C
+15
-0
No files found.
gcc/cp/ChangeLog
View file @
d6850483
2010-04-12 Jason Merrill <jason@redhat.com>
* call.c (type_decays_to): Call cv_unqualified for non-class type.
2010-04-12 Fabien Chene <fabien.chene@gmail.com>
2010-04-12 Fabien Chene <fabien.chene@gmail.com>
PR c++/25811
PR c++/25811
...
...
gcc/cp/call.c
View file @
d6850483
...
@@ -2263,6 +2263,8 @@ type_decays_to (tree type)
...
@@ -2263,6 +2263,8 @@ type_decays_to (tree type)
return
build_pointer_type
(
TREE_TYPE
(
type
));
return
build_pointer_type
(
TREE_TYPE
(
type
));
if
(
TREE_CODE
(
type
)
==
FUNCTION_TYPE
)
if
(
TREE_CODE
(
type
)
==
FUNCTION_TYPE
)
return
build_pointer_type
(
type
);
return
build_pointer_type
(
type
);
if
(
!
CLASS_TYPE_P
(
type
))
type
=
cv_unqualified
(
type
);
return
type
;
return
type
;
}
}
...
...
gcc/testsuite/ChangeLog
View file @
d6850483
2010-04-12 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/lambda/lambda-deduce2.C: New.
2010-04-12 Fabien Chene <fabien.chene@gmail.com>
2010-04-12 Fabien Chene <fabien.chene@gmail.com>
PR c++/25811
PR c++/25811
...
...
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce2.C
0 → 100644
View file @
d6850483
// Test that cv-quals are dropped from non-class return type
// { dg-options "-std=c++0x" }
template
<
class
T
,
class
U
>
struct
assert_same_type
;
template
<
class
T
>
struct
assert_same_type
<
T
,
T
>
{
};
struct
A
{
int
i
;
};
extern
const
int
i
;
assert_same_type
<
decltype
([]{
return
i
;
}()),
int
>
x
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment