From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8567 invoked by alias); 14 Oct 2013 06:29:52 -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 8536 invoked by uid 48); 14 Oct 2013 06:29:49 -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 06:29: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/msg00749.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58713 --- Comment #3 from Daniel Kr=C3=BCgler --- (In reply to Jonathan Wakely from comment #1) > I've tried to improve it in the past, but I think there's no easy way to = do > it. A possible fix might be to change the Standard ;-) Despite the smiley I seriously consider to make the proposal/open an issue that the "all-eating" signature template basic_ostream& operator<<(basic_ostream&& os, const T& x); should be constrained and should not participate in overload resolution unl= ess the expression os << x would be well-formed (similar for the corresponding extractor). My current guess is that this would also improve the diagnostics in this case, is that right? >>From gcc-bugs-return-431604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 14 06:29:09 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7302 invoked by alias); 14 Oct 2013 06:29:08 -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 7149 invoked by uid 48); 14 Oct 2013 06:29:04 -0000 From: "samsonov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/58718] Invalid check in libsanitizer Date: Mon, 14 Oct 2013 06:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: samsonov at google 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: cc 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/msg00748.txt.bz2 Content-length: 556 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58718 Alexey Samsonov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |samsonov at google dot com --- Comment #2 from Alexey Samsonov --- I've already fixed the problem with crashes caused by small "malloc_context_size" values. I think you should wait till the ASan runtime will be merged from LLVM into GCC.