Skip to content

Commit

Permalink
2018-02-05 Paolo Carlini <paolo.carlini@oracle.com>
Browse files Browse the repository at this point in the history
	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
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2018-02-05 Paolo Carlini <paolo.carlini@oracle.com>

PR c++/82782
* g++.dg/cpp1z/inline-var4.C: New.

2018-02-05 Martin Liska <mliska@suse.cz>

* c-c++-common/asan/pointer-compare-1.c: Adjust ASAN_OPTIONS
Expand Down
18 changes: 18 additions & 0 deletions gcc/testsuite/g++.dg/cpp1z/inline-var4.C
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>;

0 comments on commit e2e6994

Please sign in to comment.