From: Patrick Palka Date: Thu, 17 Dec 2015 13:30:04 +0000 (+0000) Subject: Fix wrong PR references X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fae9c1012246c77d6167388ba85c1b6e96c084b;p=gcc.git Fix wrong PR references PR c++/59878 -> PR c++/59879 From-SVN: r231755 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 14292e9fab3..a192f00713d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -2,7 +2,7 @@ PR c++/16333 PR c++/41426 - PR c++/59878 + PR c++/59879 PR c++/66895 * typeck.c (convert_for_initialization): Don't perform an early decaying conversion if converting to a class type. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fafa8cc4dec..7386f6b055c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -37,11 +37,11 @@ PR c++/16333 PR c++/41426 - PR c++/59878 + PR c++/59879 PR c++/66895 * g++.dg/conversion/pr16333.C: New test. * g++.dg/conversion/pr41426.C: New test. - * g++.dg/conversion/pr59878.C: New test. + * g++.dg/conversion/pr59879.C: New test. * g++.dg/conversion/pr66895.C: New test. 2015-12-16 Martin Sebor diff --git a/gcc/testsuite/g++.dg/conversion/pr59878.C b/gcc/testsuite/g++.dg/conversion/pr59878.C deleted file mode 100644 index ed567fe6f24..00000000000 --- a/gcc/testsuite/g++.dg/conversion/pr59878.C +++ /dev/null @@ -1,25 +0,0 @@ -// PR c++/59878 - -struct Test { - template - Test(const char (&array)[N]) {} -}; - -Test test() { - return "test1"; -} - -void test2(Test arg = "test12") {} - -template -void test3(T arg = "test123") {} - -template -void test4(const T &arg = "test123") {} - -int main() { - test(); - test2(); - test3(); - test4(); -} diff --git a/gcc/testsuite/g++.dg/conversion/pr59879.C b/gcc/testsuite/g++.dg/conversion/pr59879.C new file mode 100644 index 00000000000..7bd5b9975c1 --- /dev/null +++ b/gcc/testsuite/g++.dg/conversion/pr59879.C @@ -0,0 +1,25 @@ +// PR c++/59879 + +struct Test { + template + Test(const char (&array)[N]) {} +}; + +Test test() { + return "test1"; +} + +void test2(Test arg = "test12") {} + +template +void test3(T arg = "test123") {} + +template +void test4(const T &arg = "test123") {} + +int main() { + test(); + test2(); + test3(); + test4(); +}