public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "doko at ubuntu dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/45079]  New: function names in error message (�c_maybe_const_expr� not supported by 'pp_c_expression')
Date: Mon, 26 Jul 2010 14:15:00 -0000	[thread overview]
Message-ID: <bug-45079-11764@http.gcc.gnu.org/bugzilla/> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]

4.4 doesn't print the function names in the error message, while 4.5 and 4.6 do
so:

$ cat  foo.c
void foo(const char *p, int cond, int a, int b)
{
        p[cond ? a : b] = '\0';
}

$ gcc-4.4 -c foo.c
foo.c: In function 'foo':
foo.c:3: error: assignment of read-only location '*(p + (cond != 0 ? (long
unsigned int)(long unsigned int)a : (long unsigned int)(long unsigned int)b))'

$ gcc-4.5 -c foo.c
#'c_maybe_const_expr' not supported by pp_c_expression#) != 0 ? (long unsigned
int)a : (long unsigned int)b) * 1ul))'foo.c: In function 'foo':
foo.c:3:2: error: assignment of read-only location

is the new format expected?


-- 
           Summary: function names in error message
                    (�c_maybe_const_expr� not supported by
                    'pp_c_expression')
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45079


             reply	other threads:[~2010-07-26 14:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 14:15 doko at ubuntu dot com [this message]
2010-07-26 14:47 ` [Bug c/45079] function names in error message (�c_maybe_const_expr� " jakub at gcc dot gnu dot org
2010-07-27  6:50 ` [Bug c/45079] [4.5/4.6 Regression] " pinskia at gcc dot gnu dot org
2010-07-27 15:47 ` jakub at gcc dot gnu dot org
2010-07-27 15:50 ` [Bug c/45079] [4.5 " jakub at gcc dot gnu dot org
2010-07-31  9:35 ` rguenth at gcc dot gnu dot org
2010-08-30 15:52 ` rguenth at gcc dot gnu dot org
2010-08-30 19:32 ` jakub at gcc dot gnu dot org
2010-08-30 19:34 ` jakub at gcc dot gnu dot org

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=bug-45079-11764@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --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: link
Be 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).