From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18518 invoked by alias); 14 Oct 2013 13:17:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 18476 invoked by uid 48); 14 Oct 2013 13:17:31 -0000 From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58713] error:=?UTF-8?Q?=20cannot=20bind=20=E2=80=98std?=::ostream {aka std::basic_ostream=?UTF-8?Q?=7D=E2=80=99=20lvalue=20to=20=E2=80=98std?=::basic_ostream=?UTF-8?Q?=26=26=E2=80=99?= Date: Mon, 14 Oct 2013 13:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.kruegler at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg00798.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58713 --- Comment #6 from Daniel Kr=C3=BCgler --- (In reply to Daniel Kr=C3=BCgler from comment #5) > Thanks for your test, Marc. I will reflect upon the problem in a bit more > detail My current guess is that my suggested approach should work, assuming a prop= er helper trait template will be used. Here is the model code that I used for testing: //--------------------------- #include #include namespace xstd { template struct OStream=20 { OStream& operator<<(int); OStream& operator<<(short); OStream& operator<<(double); OStream& operator<<(const void*); }; struct is_ostreamable_impl=20 { template&>() << std::declval())> static std::true_type test(int); template static std::false_type test(...); }; template struct is_ostreamable=20 : decltype(is_ostreamable_impl::test(0))::type {=20=20 }; template::value,=20 bool >::type =3D false> OStream& operator<<(OStream&& os, const T& t)=20 { return os << t; } OStream<> out; } struct A {}; int main() { A a; xstd::out << 1; xstd::out << a; } //--------------------------- The diagnostics of my gcc current 4.9.0 is main.cpp||In function 'int main()':| main.cpp|50|error: no match for 'operator<<' (operand types are 'xstd::OStream<>' and 'A')| main.cpp|50|note: candidates are:| main.cpp|9|note: xstd::OStream& xstd::OStream::operator<<(int) [with CharT =3D char]| main.cpp|9|note: no known conversion for argument 1 from 'A' to 'int'| main.cpp|10|note: xstd::OStream& xstd::OStream::operator<<(sh= ort int) [with CharT =3D char]| main.cpp|10|note: no known conversion for argument 1 from 'A' to 'short i= nt'| main.cpp|11|note: xstd::OStream& xstd::OStream::operator<<(double) [with CharT =3D char]| main.cpp|11|note: no known conversion for argument 1 from 'A' to 'double'| main.cpp|12|note: xstd::OStream& xstd::OStream::operator<<(co= nst void*) [with CharT =3D char]| main.cpp|12|note: no known conversion for argument 1 from 'A' to 'const void*'| main.cpp|36|note: template::value, bool>::type > xstd::OStream& xstd::operator<<(xstd::OStream&&, const T&)| main.cpp|36|note: template argument deduction/substitution failed:| main.cpp|35|error: no type named 'type' in 'struct std::enable_if'| main.cpp|35|note: invalid template non-type parameter| >>From gcc-bugs-return-431655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 14 13:18:50 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19904 invoked by alias); 14 Oct 2013 13:18:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19854 invoked by uid 48); 14 Oct 2013 13:18:47 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/58015] FAIL: gfortran.dg/round_4.f90: Unsatisfied symbol "nextafterl" Date: Mon, 14 Oct 2013 13:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on cc cf_gcchost target_milestone everconfirmed cf_gccbuild Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg00799.txt.bz2 Content-length: 1032 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58015 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- Target|hppa64-hp-hpux11.11 |hppa64-hp-hpux11.11, | |*-*-solaris2.9 Status|UNCONFIRMED |NEW Last reconfirmed| |2013-10-14 CC| |ro at gcc dot gnu.org Host|hppa64-hp-hpux11.11 |hppa64-hp-hpux11.11, | |*-*-solaris2.9 Target Milestone|--- |4.9.0 Ever confirmed|0 |1 Build|hppa64-hp-hpux11.11 |hppa64-hp-hpux11.11, | |*-*-solaris2.9 --- Comment #5 from Rainer Orth --- Also on Solaris 9, both SPARC and x86. Rainer