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
f0966651
Commit
f0966651
authored
Sep 30, 2009
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove utf8
From-SVN: r152331
parent
23823e0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gcc/cp/parser.c
+2
-2
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce-neg.C
+1
-1
No files found.
gcc/cp/parser.c
View file @
f0966651
...
...
@@ -7408,13 +7408,13 @@ cp_parser_lambda_body (cp_parser* parser, tree lambda_expr)
/* 5.1.1.4 of the standard says:
If a lambda-expression does not include a trailing-return-type, it
is as if the trailing-return-type denotes the following type:
—
if the compound-statement is of the form
*
if the compound-statement is of the form
{ return attribute-specifier [opt] expression ; }
the type of the returned expression after lvalue-to-rvalue
conversion (_conv.lval_ 4.1), array-to-pointer conversion
(_conv.array_ 4.2), and function-to-pointer conversion
(_conv.func_ 4.3);
—
otherwise, void. */
*
otherwise, void. */
/* In a lambda that has neither a lambda-return-type-clause
nor a deducible form, errors should be reported for return statements
...
...
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce-neg.C
View file @
f0966651
...
...
@@ -3,7 +3,7 @@
int
main
()
{
int
i
=
0
;
int
&
r
=
[
&
]
()
{
return
i
;
}
();
// { dg-error "" "invalid initialization of non-const reference of type
‘int&’ from a temporary of type ‘int’
" }
int
&
r
=
[
&
]
()
{
return
i
;
}
();
// { dg-error "" "invalid initialization of non-const reference of type
.int&. from a temporary of type .int.
" }
return
0
;
}
...
...
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