--- /dev/null
+Return-Path: <kimminh.kaplan+nomuch@afnic.fr>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 56C36431FB6\r
+ for <notmuch@notmuchmail.org>; Mon, 29 Apr 2013 23:12:44 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id oQs7eRCGF0Ds for <notmuch@notmuchmail.org>;\r
+ Mon, 29 Apr 2013 23:12:39 -0700 (PDT)\r
+Received: from mx4.nic.fr (mx4.nic.fr [192.134.4.12])\r
+ by olra.theworths.org (Postfix) with ESMTP id B8DB7431FAF\r
+ for <notmuch@notmuchmail.org>; Mon, 29 Apr 2013 23:12:39 -0700 (PDT)\r
+Received: from mx4.nic.fr (localhost [127.0.0.1])\r
+ by mx4.nic.fr (Postfix) with SMTP id 33540280785;\r
+ Tue, 30 Apr 2013 08:12:37 +0200 (CEST)\r
+Received: from relay2.nic.fr (relay2.nic.fr [192.134.4.163])\r
+ by mx4.nic.fr (Postfix) with ESMTP id 2E82028072C;\r
+ Tue, 30 Apr 2013 08:12:37 +0200 (CEST)\r
+Received: from kaki.tech.prive.nic.fr (kaki.tech.prive.sqy.nic.fr\r
+ [10.10.86.114]) by relay2.nic.fr (Postfix) with ESMTP id 2CF2DB38055;\r
+ Tue, 30 Apr 2013 08:12:07 +0200 (CEST)\r
+Received: by kaki.tech.prive.nic.fr (Postfix, from userid 1000)\r
+ id 19A3C3F83CB; Tue, 30 Apr 2013 06:12:07 +0000 (UTC)\r
+From: Kim Minh Kaplan <kimminh.kaplan+nomuch@afnic.fr>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>\r
+Subject: Re: [PATCH] don't store temporary value returned from c_str()\r
+References: <1366405933-17223-1-git-send-email-Vladimir.Marek@oracle.com>\r
+ <m2sj2cjp2b.fsf@guru.guru-group.fi>\r
+ <20130427101134.GI10394@pub.cz.oracle.com>\r
+Date: Tue, 30 Apr 2013 06:12:06 +0000\r
+In-Reply-To: <20130427101134.GI10394@pub.cz.oracle.com> (Vladimir Marek's\r
+ message of "Sat, 27 Apr 2013 12:11:35 +0200")\r
+Message-ID: <8761z4h7ih.fsf@kaki.tech.prive.nic.fr>\r
+User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+Cc: notmuch@notmuchmail.org, Vladimir Marek <vlmarek@volny.cz>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 30 Apr 2013 06:12:44 -0000\r
+\r
+Vladimir Marek writes:\r
+\r
+> Well, a) standards says that\r
+>\r
+> A temporary bound to a reference parameter in a function call (5.2.2)\r
+> persists until the completion of the full expression containing the call\r
+>\r
+> (you can find the message all over the net, but I can't find actual link\r
+> to the standard :-/)\r
+\r
+The january 2012 working draft:=20\r
+http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3337.pdf\r
+\r
+ 12.2 Temporary objects [class.temporary]\r
+\r
+ 1 Temporaries of class type are created in various contexts: binding a\r
+ reference to a prvalue (8.5.3), returning a prvalue (6.6.3) [=E2=80=A6]\r
+\r
+ 3 When an implementation introduces a temporary object of a class that\r
+ has a non-trivial constructor (12.1, 12.8), it shall ensure that a\r
+ constructor is called for the temporary object. Similarly, the\r
+ destructor shall be called for a temporary with a non-trivial destructor\r
+ (12.4). Temporary objects are destroyed as the last step in evaluating\r
+ the full-expression (1.9) that (lexically) contains the point where they\r
+ were created.\r
+\r
+Kim Minh.\r