public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: Ritzert@t-online.de To: gcc-bugs@gcc.gnu.org Cc: austern@apple.com Subject: Is this a bug? Date: Fri, 30 Aug 2002 02:41:00 -0000 [thread overview] Message-ID: <1030699963.3d6f3bbb2ea6d@webmail.t-online.de> (raw) Hi all, Since 2002-08-26 I'm unable to compile STLPort with gcc HEAD. I have stripped down the STLPort code to this small testcase: # cat x.cpp template <class _Tp> inline const _Tp& max(const _Tp& __a, const _Tp& __b) { return __a < __b ? __b : __a; } void append() { const unsigned __old_size = 3; int __n = 7; max(__old_size, static_cast<unsigned>(__n)); } # gcc -c x.cpp x.cpp: In function `void append()': x.cpp:9: error: non-lvalue in unary `&' The patch causing this seems to be 2002-08-24 Matt Austern <austern@apple.com> * tree.c (lvalue_p_1): Add argument for whether casts of lvalues are allowable. (real_lvalue_p): Update caller. (lvalue_p): Ditto. (non_cast_lvalue_or_else): New. * tree.h: Declare it. * typeck.c (build_unary_op): Use non_cast_lvalue_or_else. The ChangeLog to the previous successful build is rather small with this being the only patch that looks suspicious to me. If this is considered a bug, just tell me and I'll file a bug report for it. (Or fix it before I get the chance to do so ;-) ). Regards, Michael
next reply other threads:[~2002-08-30 2:41 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-08-30 2:41 Ritzert [this message] 2002-09-03 14:07 ` Matt Austern 2002-09-10 1:06 ` Michael Ritzert -- strict thread matches above, loose matches on Subject: below -- 2003-08-21 9:23 Lev Assinovsky 2003-02-06 21:33 Matthew Toseland 2003-02-06 22:18 ` Falk Hueffner 2003-01-02 21:21 Songtao Chen 2003-01-02 21:24 ` Neil Booth 2003-01-02 21:42 ` Songtao Chen 2003-01-02 21:46 ` Neil Booth 2003-01-02 23:00 ` Songtao Chen 2003-01-13 5:17 ` Zack Weinberg 2003-01-13 5:17 ` Songtao Chen 2000-12-06 3:42 Martin Kahlert 2000-01-30 16:44 Kuo Yu Chuang [not found] <007d01bf6988$d2fb0c40$795d608c@ccl.itri.org.tw> 2000-01-30 2:45 ` Martin v. Loewis 1999-05-11 21:09 Christian II 1999-05-11 23:44 ` Martin v. Loewis
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1030699963.3d6f3bbb2ea6d@webmail.t-online.de \ --to=ritzert@t-online.de \ --cc=austern@apple.com \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).