diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-09-10 20:31:03 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-09-10 20:31:03 +0000 |
| commit | 8eeb16f5d1008a3d3fc89e88d92b3bcebc36bba2 (patch) | |
| tree | 515beea70adb40b91987b18587c4634a9ba4af7d /clang/test/SemaCXX/cxx14-compat.cpp | |
| parent | 6dc896812423b7201492a116895df6c8c9601acf (diff) | |
| download | bcm5719-llvm-8eeb16f5d1008a3d3fc89e88d92b3bcebc36bba2.tar.gz bcm5719-llvm-8eeb16f5d1008a3d3fc89e88d92b3bcebc36bba2.zip | |
Enhance -Wc++14-compat for class template argument deduction to list the
deduced type (if known).
llvm-svn: 341858
Diffstat (limited to 'clang/test/SemaCXX/cxx14-compat.cpp')
| -rw-r--r-- | clang/test/SemaCXX/cxx14-compat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx14-compat.cpp b/clang/test/SemaCXX/cxx14-compat.cpp index 8b3dee8c822..d70f477cd09 100644 --- a/clang/test/SemaCXX/cxx14-compat.cpp +++ b/clang/test/SemaCXX/cxx14-compat.cpp @@ -16,7 +16,7 @@ namespace [[]] NS_with_attr {} // expected-warning {{incompatible with C++ stand enum { e [[]] }; // expected-warning {{incompatible with C++ standards before C++17}} template<typename T = int> struct X {}; -X x; // expected-warning {{class template argument deduction is incompatible with C++ standards before C++17}} +X x; // expected-warning {{class template argument deduction is incompatible with C++ standards before C++17; for compatibility, use explicit type name 'X<int>'}} template<template<typename> class> struct Y {}; Y<X> yx; // ok, not class template argument deduction |

