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.
2018-02-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/82782 * g++.dg/cpp1z/inline-var4.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257388 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
paolo
committed
Feb 5, 2018
1 parent
7c2b1db
commit e2e6994
Showing
2 changed files
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// PR c++/82782 | ||
// { dg-options -std=c++17 } | ||
|
||
template <const auto& Value> | ||
struct make_char_sequence; | ||
|
||
template <int N, const char (&StringLiteral)[N]> | ||
struct make_char_sequence<StringLiteral> | ||
{ | ||
using type = int; | ||
}; | ||
|
||
template <const auto& StringLiteral> | ||
using make_char_sequence_t = typename make_char_sequence<StringLiteral>::type; | ||
|
||
inline constexpr char sample[] = "Sample"; | ||
|
||
using X = make_char_sequence_t<sample>; |