public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34965]  New: [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr
@ 2008-01-25  2:35 reichelt at gcc dot gnu dot org
  2008-01-25  2:54 ` [Bug c++/34965] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-25  2:35 UTC (permalink / raw)
  To: gcc-bugs

A broken diagnostic is issued for the following invalid code snippet
since GCC 3.4.0, but only when compiled with "-O" or higher:

========================
int foo(int);

void bar(int i, int j)
{
  foo(i && j)();
}
========================

bug.cc: In function 'void bar(int, int)':
bug.cc:5: error: 'foo(((int)#'truth_and_expr' not supported by
dump_expr#<expression error>))' cannot be used as a function


-- 
           Summary: [4.1/4.2/4.3 regression] Broken diagnostic:
                    'truth_and_expr' not supported by dump_expr
           Product: gcc
           Version: 4.3.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=34965


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

* [Bug c++/34965] [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr
  2008-01-25  2:35 [Bug c++/34965] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
@ 2008-01-25  2:54 ` reichelt at gcc dot gnu dot org
  2008-01-25 10:07 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-25  2:54 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=34965


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

* [Bug c++/34965] [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr
  2008-01-25  2:35 [Bug c++/34965] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
  2008-01-25  2:54 ` [Bug c++/34965] " reichelt at gcc dot gnu dot org
@ 2008-01-25 10:07 ` rguenth at gcc dot gnu dot org
  2008-01-25 14:21 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-25 10:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to work|                            |3.3.6
           Priority|P3                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-25 10:00:59
               date|                            |


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


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

* [Bug c++/34965] [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr
  2008-01-25  2:35 [Bug c++/34965] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
  2008-01-25  2:54 ` [Bug c++/34965] " reichelt at gcc dot gnu dot org
  2008-01-25 10:07 ` rguenth at gcc dot gnu dot org
@ 2008-01-25 14:21 ` jakub at gcc dot gnu dot org
  2008-01-26 17:28 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-25 14:21 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-01-25 10:00:59         |2008-01-25 13:20:28
               date|                            |


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


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

* [Bug c++/34965] [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr
  2008-01-25  2:35 [Bug c++/34965] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-01-25 14:21 ` jakub at gcc dot gnu dot org
@ 2008-01-26 17:28 ` jakub at gcc dot gnu dot org
  2008-01-26 17:30 ` [Bug c++/34965] [4.1/4.2 " jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-26 17:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2008-01-26 17:05 -------
Subject: Bug 34965

Author: jakub
Date: Sat Jan 26 17:04:54 2008
New Revision: 131868

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131868
Log:
        PR c++/34965
        * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
        TRUTH_XOR_EXPR.
        (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
        (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
        (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
        and TRUTH_XOR_EXPR.

        * error.c (dump_expr): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
        and TRUTH_XOR_EXPR.

        * gcc.dg/pr34965.c: New test.
        * g++.dg/other/error24.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/other/error24.C
    trunk/gcc/testsuite/gcc.dg/pr34965.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-pretty-print.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/error.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/34965] [4.1/4.2 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr
  2008-01-25  2:35 [Bug c++/34965] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-01-26 17:28 ` jakub at gcc dot gnu dot org
@ 2008-01-26 17:30 ` jakub at gcc dot gnu dot org
  2008-07-04 22:32 ` [Bug c++/34965] [4.2 " jsm28 at gcc dot gnu dot org
  2009-03-31 15:04 ` jsm28 at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-26 17:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2008-01-26 17:07 -------
Fixed on the trunk.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3 regression]    |[4.1/4.2 regression] Broken
                   |Broken diagnostic:          |diagnostic: 'truth_and_expr'
                   |'truth_and_expr' not        |not supported by dump_expr
                   |supported by dump_expr      |


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


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

* [Bug c++/34965] [4.2 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr
  2008-01-25  2:35 [Bug c++/34965] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-01-26 17:30 ` [Bug c++/34965] [4.1/4.2 " jakub at gcc dot gnu dot org
@ 2008-07-04 22:32 ` jsm28 at gcc dot gnu dot org
  2009-03-31 15:04 ` jsm28 at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:32 UTC (permalink / raw)
  To: gcc-bugs



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


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 regression] Broken |[4.2 regression] Broken
                   |diagnostic: 'truth_and_expr'|diagnostic: 'truth_and_expr'
                   |not supported by dump_expr  |not supported by dump_expr
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/34965] [4.2 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr
  2008-01-25  2:35 [Bug c++/34965] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-07-04 22:32 ` [Bug c++/34965] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-31 15:04 ` jsm28 at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 15:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2009-03-31 15:03 -------
Closing 4.2 branch, fixed in 4.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|                            |4.2.5
      Known to work|3.3.6                       |3.3.6 4.3.0
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.0


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


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

end of thread, other threads:[~2009-03-31 15:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-25  2:35 [Bug c++/34965] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'truth_and_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
2008-01-25  2:54 ` [Bug c++/34965] " reichelt at gcc dot gnu dot org
2008-01-25 10:07 ` rguenth at gcc dot gnu dot org
2008-01-25 14:21 ` jakub at gcc dot gnu dot org
2008-01-26 17:28 ` jakub at gcc dot gnu dot org
2008-01-26 17:30 ` [Bug c++/34965] [4.1/4.2 " jakub at gcc dot gnu dot org
2008-07-04 22:32 ` [Bug c++/34965] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-31 15:04 ` jsm28 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).