Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
0565d654
Commit
0565d654
authored
Feb 24, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gcc 7.2 issue
parent
f5dc0ed3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
include/fmt/format.h
include/fmt/format.h
+2
-1
test/format-test.cc
test/format-test.cc
+1
-1
No files found.
include/fmt/format.h
View file @
0565d654
...
...
@@ -1992,7 +1992,8 @@ FMT_CONSTEXPR void parse_format_string(Iterator it, Handler &&handler) {
template
<
typename
T
,
typename
ParseContext
>
FMT_CONSTEXPR
const
typename
ParseContext
::
char_type
*
parse_format_specs
(
ParseContext
&
ctx
)
{
formatter
<
T
,
typename
ParseContext
::
char_type
>
f
;
// GCC 7.2 requires initializer.
formatter
<
T
,
typename
ParseContext
::
char_type
>
f
{};
return
f
.
parse
(
ctx
);
}
...
...
test/format-test.cc
View file @
0565d654
...
...
@@ -1929,7 +1929,7 @@ FMT_CONSTEXPR bool test_error(const char *fmt, const char *expected_error) {
TEST
(
FormatTest
,
FormatStringErrors
)
{
EXPECT_ERROR
(
"foo"
,
nullptr
);
EXPECT_ERROR
(
"}"
,
"unmatched '}' in format string"
);
//
EXPECT_ERROR("{0:s", "unknown format specifier", Date);
EXPECT_ERROR
(
"{0:s"
,
"unknown format specifier"
,
Date
);
#ifndef _MSC_VER
// This causes an internal compiler error in MSVC2017.
EXPECT_ERROR
(
"{0:=5"
,
"unknown format specifier"
,
int
);
...
...
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