[Bug c++/67605] New: Compilation errors creating std::pair using templated arguments
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67605 Bug ID: 67605 Summary: Compilation errors creating std::pair using templated arguments Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kplatz at utdallas dot edu Target Milestone: --- The following code compiles correctly on the GCC-4.8 series, but errors out on GCC-4.9 and 5.X: #include #include template class List; template class List { template class Node { public: static const int SPLIT; Node* next;// Next pointer int keys[KK]; // Set of key/data pairs. Node() : next(nullptr) { std::fill(keys, keys + KK, 0); } }; public: std::pair*, Node*> scan(); }; template std::pair::Node*, List::Node*> List::scan( ) { return std::make_pair( nullptr, nullptr ); } int main() { List<1> foo; auto bar = foo.scan(); } The errors reported are: [ken@sager ~]$ g++520 --std=c++11 urllist1.cpp urllist1.cpp:32:26: error: wrong number of template arguments (1, should be 2) std::pair::Node*, List::Node*> List::scan( ) { ^ In file included from /usr/local/include/c++/5.2.0/utility:70:0, from /usr/local/include/c++/5.2.0/algorithm:60, from urllist1.cpp:8: /usr/local/include/c++/5.2.0/bits/stl_pair.h:96:12: note: provided for ‘template struct std::pair’ struct pair ^ urllist1.cpp:32:28: error: expected unqualified-id before ‘,’ token std::pair::Node*, List::Node*> List::scan( ) {
[Bug target/61359] GCC Bootstrap comparison failures on hppa2.0w-hp-hpux11.23
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61359 --- Comment #2 from Kenneth Platz --- I attempted to build the gcc-4.9.0 release, and it bombs out in libquadmath: gmake[4]: Leaving directory `/nfshomes/platzk/gnu/gcc-build/4.9.0/hppa2.0w-hp-hpux11.23/libffi/include' Making all in testsuite In file included from ../../../../gcc-4.9.0/libquadmath/math/x2y2m1q.c:19:0: ../../../../gcc-4.9.0/libquadmath/quadmath-imp.h:55:3: error: #error "No way!" # error "No way!" This appears to occur when there is no UINT_64 detected. This is on a PA-RISC 2.0 system, so the "unsigned long long" data type is available.
[Bug bootstrap/61359] New: GCC Bootstrap comparison failures on hppa2.0w-hp-hpux11.23
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61359 Bug ID: 61359 Summary: GCC Bootstrap comparison failures on hppa2.0w-hp-hpux11.23 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: kplatz at utdallas dot edu Comparing stages 2 and 3 warning: gcc/cc1-checksum.o differs warning: gcc/cc1plus-checksum.o differs warning: gcc/cc1obj-checksum.o differs warning: hppa2.0w-hp-hpux11.23/libgcc/lib2funcs_s.o differs warning: hppa2.0w-hp-hpux11.23/libgcc/lib2funcs.o differs Bootstrap comparison failure! gcc/c-family/c-ppoutput.o differs libcpp/errors.o differs libcpp/files.o differs libcpp/directives-only.o differs libcpp/identifiers.o differs libcpp/directives.o differs libcpp/line-map.o differs libcpp/charset.o differs libcpp/lex.o differs libcpp/expr.o differs libcpp/macro.o differs libcpp/traditional.o differs libcpp/pch.o differs libcpp/init.o differs gmake[2]: *** [compare] Error 1 gmake[2]: Leaving directory `/nfshomes/platzk/gnu/gcc-build' gmake[1]: *** [stage3-bubble] Error 2 gmake[1]: Leaving directory `/nfshomes/platzk/gnu/gcc-build' gmake: *** [all] Error 2