https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64251

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
For example:

markus@x4 /tmp % cat foo.ii
class DictionaryValue {};
template <typename T> void CreateValue(T) {
          DictionaryValue(0);
            CreateValue(0);
}

markus@x4 /tmp % checking-release/g++ -std=c++11 -c foo.ii
markus@x4 /tmp % checking-yes/g++ -std=c++11 -c foo.ii
foo.ii: In instantiation of ‘void CreateValue(T) [with T = int]’:
foo.ii:4:17:   required from here
foo.ii:3:4: error: no matching function for call to
‘DictionaryValue::DictionaryValue(int)’
    DictionaryValue(0);
    ^
foo.ii:1:7: note: candidate: constexpr DictionaryValue::DictionaryValue()
 class DictionaryValue {};
       ^
foo.ii:1:7: note:   candidate expects 0 arguments, 1 provided
foo.ii:1:7: note: candidate: constexpr DictionaryValue::DictionaryValue(const
DictionaryValue&)
foo.ii:1:7: note:   no known conversion for argument 1 from ‘int’ to ‘const
DictionaryValue&’
foo.ii:1:7: note: candidate: constexpr
DictionaryValue::DictionaryValue(DictionaryValue&&)
foo.ii:1:7: note:   no known conversion for argument 1 from ‘int’ to
‘DictionaryValue&&’

Reply via email to