public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33843]  New: [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id
@ 2007-10-20 22:09 reichelt at gcc dot gnu dot org
  2007-10-20 22:09 ` [Bug c++/33843] " reichelt at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-10-20 22:09 UTC (permalink / raw)
  To: gcc-bugs

The C++ generates a broken diagnostic for the following invalid code
snippet since GCC 3.4.2:

=====================================
struct A {};

void foo(A* p())
{
  p->A::~A();
}
=====================================

bug.cc: In function 'void foo(A* (*)())':
bug.cc:5: error: request for member 'A::#'bit_not_expr' not supported by
pp_cxx_unqualified_id#' in '* p', which is of non-class type 'A* ()()'


-- 
           Summary: [4.1/4.2/4.3 regression] Broken diagnostic:
                    'bit_not_expr' not supported by pp_cxx_unqualified_id
           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=33843


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

* [Bug c++/33843] [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id
  2007-10-20 22:09 [Bug c++/33843] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id reichelt at gcc dot gnu dot org
@ 2007-10-20 22:09 ` reichelt at gcc dot gnu dot org
  2007-10-25 11:06 ` pcarlini at suse dot de
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-10-20 22:09 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=33843


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

* [Bug c++/33843] [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id
  2007-10-20 22:09 [Bug c++/33843] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id reichelt at gcc dot gnu dot org
  2007-10-20 22:09 ` [Bug c++/33843] " reichelt at gcc dot gnu dot org
@ 2007-10-25 11:06 ` pcarlini at suse dot de
  2007-10-25 23:43 ` paolo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pcarlini at suse dot de @ 2007-10-25 11:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-10-25 11:06:27
               date|                            |


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


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

* [Bug c++/33843] [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id
  2007-10-20 22:09 [Bug c++/33843] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id reichelt at gcc dot gnu dot org
  2007-10-20 22:09 ` [Bug c++/33843] " reichelt at gcc dot gnu dot org
  2007-10-25 11:06 ` pcarlini at suse dot de
@ 2007-10-25 23:43 ` paolo at gcc dot gnu dot org
  2007-10-25 23:46 ` [Bug c++/33843] [4.1/4.2 " pcarlini at suse dot de
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-10-25 23:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo at gcc dot gnu dot org  2007-10-25 23:43 -------
Subject: Bug 33843

Author: paolo
Date: Thu Oct 25 23:42:49 2007
New Revision: 129637

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129637
Log:
2007-10-25  Paolo Carlini  <pcarlini@suse.de>

        PR c++/33843
        * cxx-pretty-print.c (pp_cxx_unqualified_id): Deal with BIT_NOT_EXPR.

2007-10-25  Paolo Carlini  <pcarlini@suse.de>

        PR c++/33843
        * g++.dg/template/error32.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/error32.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cxx-pretty-print.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/33843] [4.1/4.2 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id
  2007-10-20 22:09 [Bug c++/33843] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-10-25 23:43 ` paolo at gcc dot gnu dot org
@ 2007-10-25 23:46 ` pcarlini at suse dot de
  2008-07-04 22:20 ` [Bug c++/33843] [4.2 " jsm28 at gcc dot gnu dot org
  2009-03-31  0:34 ` jsm28 at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pcarlini at suse dot de @ 2007-10-25 23:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pcarlini at suse dot de  2007-10-25 23:46 -------
Fixed in mainline.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pcarlini at suse dot de     |unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
            Summary|[4.1/4.2/4.3 regression]    |[4.1/4.2 regression] Broken
                   |Broken diagnostic:          |diagnostic: 'bit_not_expr'
                   |'bit_not_expr' not supported|not supported by
                   |by pp_cxx_unqualified_id    |pp_cxx_unqualified_id


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


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

* [Bug c++/33843] [4.2 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id
  2007-10-20 22:09 [Bug c++/33843] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-10-25 23:46 ` [Bug c++/33843] [4.1/4.2 " pcarlini at suse dot de
@ 2008-07-04 22:20 ` jsm28 at gcc dot gnu dot org
  2009-03-31  0:34 ` jsm28 at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jsm28 at gcc dot gnu dot org  2008-07-04 22:19 -------
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: 'bit_not_expr'  |diagnostic: 'bit_not_expr'
                   |not supported by            |not supported by
                   |pp_cxx_unqualified_id       |pp_cxx_unqualified_id
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/33843] [4.2 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id
  2007-10-20 22:09 [Bug c++/33843] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-07-04 22:20 ` [Bug c++/33843] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-31  0:34 ` jsm28 at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31  0:34 UTC (permalink / raw)
  To: gcc-bugs



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


-- 

jsm28 at gcc dot gnu dot org changed:

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


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


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-20 22:09 [Bug c++/33843] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id reichelt at gcc dot gnu dot org
2007-10-20 22:09 ` [Bug c++/33843] " reichelt at gcc dot gnu dot org
2007-10-25 11:06 ` pcarlini at suse dot de
2007-10-25 23:43 ` paolo at gcc dot gnu dot org
2007-10-25 23:46 ` [Bug c++/33843] [4.1/4.2 " pcarlini at suse dot de
2008-07-04 22:20 ` [Bug c++/33843] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-31  0:34 ` 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).