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
15694fdd
Commit
15694fdd
authored
Nov 01, 2011
by
Jason Merrill
Committed by
Jason Merrill
Nov 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c.opt (-fdeduce-init-list): Off by default.
From-SVN: r180728
parent
a7d5d7e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
gcc/c-family/ChangeLog
+2
-0
gcc/c-family/c.opt
+2
-2
gcc/doc/invoke.texi
+7
-6
gcc/testsuite/g++.dg/cpp0x/initlist-deduce.C
+1
-1
No files found.
gcc/c-family/ChangeLog
View file @
15694fdd
2011
-
10
-
31
Jason
Merrill
<
jason
@redhat
.
com
>
*
c
.
opt
(
-
fdeduce
-
init
-
list
)
:
Off
by
default
.
PR
c
++/
50920
*
c
-
common
.
h
(
cxx_dialect
)
:
Add
cxx11
and
cxx03
.
*
c
.
opt
:
Add
-
std
=
c
++
11
,
-
std
=
gnu
++
11
,
-
std
=
gnu
++
03
,
...
...
gcc/c-family/c.opt
View file @
15694fdd
...
...
@@ -752,8 +752,8 @@ C ObjC C++ ObjC++
Emit debug annotations during preprocessing
fdeduce-init-list
C++ ObjC++ Var(flag_deduce_init_list) Init(
1
)
-f
no-deduce-init-list dis
able deduction of std::initializer_list for a template type parameter from a brace-enclosed initializer-list
C++ ObjC++ Var(flag_deduce_init_list) Init(
0
)
-f
deduce-init-list en
able deduction of std::initializer_list for a template type parameter from a brace-enclosed initializer-list
fdefault-inline
C++ ObjC++ Ignore
...
...
gcc/doc/invoke.texi
View file @
15694fdd
...
...
@@ -1907,9 +1907,9 @@ to @var{n}. A limit is needed to detect endless recursion during
constant
expression
evaluation
.
The
minimum
specified
by
the
standard
is
512.
@
item
-
f
no
-
deduce
-
init
-
list
@
opindex
f
no
-
deduce
-
init
-
list
Dis
able
deduction
of
a
template
type
parameter
as
@
item
-
fdeduce
-
init
-
list
@
opindex
fdeduce
-
init
-
list
En
able
deduction
of
a
template
type
parameter
as
std
::
initializer_list
from
a
brace
-
enclosed
initializer
list
,
i
.
e
.
@
smallexample
...
...
@@ -1924,9 +1924,10 @@ void f()
@}
@
end
smallexample
This
option
is
present
because
this
deduction
is
an
extension
to
the
current
specification
in
the
C
++
0x
working
draft
,
and
there
was
some
concern
about
potential
overload
resolution
problems
.
This
deduction
was
implemented
as
a
possible
extension
to
the
originally
proposed
semantics
for
the
C
++
11
standard
,
but
was
not
part
of
the
final
standard
,
so
it
is
disabled
by
default
.
This
option
is
deprecated
,
and
may
be
removed
in
a
future
version
of
G
++.
@
item
-
ffriend
-
injection
@
opindex
ffriend
-
injection
...
...
gcc/testsuite/g++.dg/cpp0x/initlist-deduce.C
View file @
15694fdd
...
...
@@ -2,7 +2,7 @@
// supported by the working draft, but is necessary for perfect forwarding
// of initializer-lists to things that can take a std::initializer_list.
// { dg-options
-std=c++0x
}
// { dg-options
"-std=c++0x -fdeduce-init-list"
}
// { dg-do run }
#include <initializer_list>
...
...
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