GCC 6: template argument deduction/substitution failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there any helpful list of major changes in GCC 6, which may give a hint
about what C++ gotchas that used to build with GCC 5 may not be valid anymore?

And is there a bugzilla tracker ticket for other packages with C++ compilation
issues?


https://bugzilla.redhat.com/1307334

if g++ -fPIC -DPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -std=c++0x -std=gnu++11 -ffast-math -Wall -pipe -Wno-deprecated-declarations -Wtype-limits -Woverloaded-virtual -fvisibility=hidden -include config.h   -I../.. -c -o jack-ng.plugin.o jack-ng.cc; then \
	printf "Successfully compiled jack-ng.cc (plugin).\n"; \
else \
	err=$?; printf "Failed to compile jack-ng.cc (plugin)!\n"; exit $err; \
fi
jack-ng.cc: In member function 'virtual void JACKOutput::close_audio()':
jack-ng.cc:259:42: error: no matching function for call to 'end(jack_port_t* [10])'
     std::fill (m_ports, std::end (m_ports), nullptr);
                                          ^
In file included from /usr/include/libaudcore/audstrings.h:26:0,
                 from jack-ng.cc:22:
/usr/include/c++/6.0.0/initializer_list:99:5: note: candidate: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^~~
/usr/include/c++/6.0.0/initializer_list:99:5: note:   template argument deduction/substitution failed:
jack-ng.cc:259:42: note:   mismatched types 'std::initializer_list<_Tp>' and 'jack_port_t** {aka _jack_port**}'
     std::fill (m_ports, std::end (m_ports), nullptr);
                                          ^
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux