public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35441]  New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics
@ 2008-03-03 21:32 reichelt at gcc dot gnu dot org
  2008-03-03 21:32 ` [Bug c/35441] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-03 21:32 UTC (permalink / raw)
  To: gcc-bugs

A broken diagnostic is issued for the following invalid code snippet
since GCC 4.0.0:

================================
void foo(char **p, char **q)
{
  (p - q)();
}
================================

With GCC 4.0.x we got 

bug.c: In function 'foo':
bug.c:3: error: called object '#'exact_div_expr' not supported by
pp_c_expression#' is not a function

which is already bad enough. But since GCC 4.1.0 it's even worse:

#'exact_div_expr' not supported by pp_c_expression#'bug.c: In function 'foo':
bug.c:3: error: called object  is not a function

Not only the exact_div_expr case should be fixed, but also the output
order when we hit something unsupported. And, yes, there are more cases
of unsupported expressions. How about the following?

================================
void foo(char *p, char *q)
{
  (p < q ? p : q)();
}
================================

#'min_expr' not supported by pp_c_expression#'bug.c: In function 'foo':
bug.c:3: error: called object  is not a function

================================
void foo(double x, double y)
{
  (x/y)();
}
================================

#'rdiv_expr' not supported by pp_c_expression#'bug.c: In function 'foo':
bug.c:3: error: called object  is not a function

================================
void foo(unsigned i, int j)
{
  (i << j | i >> (32 - j))();
  (i >> j | i << (32 - j))();
}
================================

#'lrotate_expr' not supported by pp_c_expression#'bug.c: In function 'foo':
bug.c:3: error: called object  is not a function
#'rrotate_expr' not supported by pp_c_expression#'bug.c:4: error: called object
 is not a function


-- 
           Summary: [4.1/4.2/4.3/4.4 regression] Completely broken
                    diagnostics
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: diagnostic, monitored
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c/35441] [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics
  2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
@ 2008-03-03 21:32 ` reichelt at gcc dot gnu dot org
  2008-03-15  1:37 ` jsm28 at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-03 21:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.3


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


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

* [Bug c/35441] [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics
  2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
  2008-03-03 21:32 ` [Bug c/35441] " reichelt at gcc dot gnu dot org
@ 2008-03-15  1:37 ` jsm28 at gcc dot gnu dot org
  2008-07-04 22:38 ` [Bug c/35441] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-03-15  1:37 UTC (permalink / raw)
  To: gcc-bugs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P3                          |P4
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-15 01:36:55
               date|                            |


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


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

* [Bug c/35441] [4.2/4.3/4.4 regression] Completely broken diagnostics
  2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
  2008-03-03 21:32 ` [Bug c/35441] " reichelt at gcc dot gnu dot org
  2008-03-15  1:37 ` jsm28 at gcc dot gnu dot org
@ 2008-07-04 22:38 ` jsm28 at gcc dot gnu dot org
  2008-08-12 18:50 ` aldyh at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jsm28 at gcc dot gnu dot org  2008-07-04 22:38 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression]
                   |Completely broken           |Completely broken
                   |diagnostics                 |diagnostics
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c/35441] [4.2/4.3/4.4 regression] Completely broken diagnostics
  2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-07-04 22:38 ` [Bug c/35441] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2008-08-12 18:50 ` aldyh at gcc dot gnu dot org
  2008-08-14  4:25 ` sabre at nondot dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2008-08-12 18:50 UTC (permalink / raw)
  To: gcc-bugs



-- 

aldyh at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |aldyh at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c/35441] [4.2/4.3/4.4 regression] Completely broken diagnostics
  2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-08-12 18:50 ` aldyh at gcc dot gnu dot org
@ 2008-08-14  4:25 ` sabre at nondot dot org
  2009-03-31 20:46 ` [Bug c/35441] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sabre at nondot dot org @ 2008-08-14  4:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sabre at nondot dot org  2008-08-14 04:23 -------
FYI, clang produces:

t.c:3:3: error: called object is not a function or function pointer
  (p - q)();
  ^~~~~~~~~
t.c:8:3: error: called object is not a function or function pointer
  (p < q ? p : q)();
  ^~~~~~~~~~~~~~~~~


-- 


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


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

* [Bug c/35441] [4.3/4.4/4.5 regression] Completely broken diagnostics
  2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-08-14  4:25 ` sabre at nondot dot org
@ 2009-03-31 20:46 ` jsm28 at gcc dot gnu dot org
  2009-06-17 11:10 ` aldyh at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 20:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jsm28 at gcc dot gnu dot org  2009-03-31 20:46 -------
Closing 4.2 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2/4.3/4.4/4.5 regression]|[4.3/4.4/4.5 regression]
                   |Completely broken           |Completely broken
                   |diagnostics                 |diagnostics
   Target Milestone|4.2.5                       |4.3.4


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


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

* [Bug c/35441] [4.3/4.4/4.5 regression] Completely broken diagnostics
  2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-03-31 20:46 ` [Bug c/35441] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
@ 2009-06-17 11:10 ` aldyh at gcc dot gnu dot org
  2009-08-04 12:40 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:21 ` [Bug c/35441] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2009-06-17 11:10 UTC (permalink / raw)
  To: gcc-bugs



-- 

aldyh at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|aldyh at gcc dot gnu dot org|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug c/35441] [4.3/4.4/4.5 regression] Completely broken diagnostics
  2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-06-17 11:10 ` aldyh at gcc dot gnu dot org
@ 2009-08-04 12:40 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:21 ` [Bug c/35441] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-08-04 12:28 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


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


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

* [Bug c/35441] [4.3/4.4/4.5/4.6 regression] Completely broken diagnostics
  2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-08-04 12:40 ` rguenth at gcc dot gnu dot org
@ 2010-05-22 18:21 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2010-05-22 18:12 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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


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

end of thread, other threads:[~2010-05-22 18:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 21:32 [Bug c/35441] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostics reichelt at gcc dot gnu dot org
2008-03-03 21:32 ` [Bug c/35441] " reichelt at gcc dot gnu dot org
2008-03-15  1:37 ` jsm28 at gcc dot gnu dot org
2008-07-04 22:38 ` [Bug c/35441] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-08-12 18:50 ` aldyh at gcc dot gnu dot org
2008-08-14  4:25 ` sabre at nondot dot org
2009-03-31 20:46 ` [Bug c/35441] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-06-17 11:10 ` aldyh at gcc dot gnu dot org
2009-08-04 12:40 ` rguenth at gcc dot gnu dot org
2010-05-22 18:21 ` [Bug c/35441] [4.3/4.4/4.5/4.6 " rguenth 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).