repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr80973.C
blob
b534fdbab6f6389ef7f92df4dc5a65602518d838
1
// PR c++/80973
2
// { dg-do compile }
3
// { dg-options "-fsanitize=undefined -std=c++14" }
4
5
struct A {
6
A();
7
A(const A &);
8
};
9
struct B {
10
B();
11
template <typename... Args> auto g(Args &&... p1) {
12
return [=] { f(p1...); };
13
}
14
void f(A, const char *);
15
};
16
B::B() { g(A(), ""); }