public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45079]  New: function names in error message (�c_maybe_const_expr� not supported by 'pp_c_expression')
@ 2010-07-26 14:15 doko at ubuntu dot com
  2010-07-26 14:47 ` [Bug c/45079] " jakub at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: doko at ubuntu dot com @ 2010-07-26 14:15 UTC (permalink / raw)
  To: gcc-bugs

[-- 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-08-30 19:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-26 14:15 [Bug c/45079] New: function names in error message (�c_maybe_const_expr� not supported by 'pp_c_expression') doko at ubuntu dot com
2010-07-26 14:47 ` [Bug c/45079] " 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

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).