public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14123] New: odd number of parentheses in error message
@ 2004-02-12  2:42 andr at triumf dot ca
  2004-02-12  2:53 ` [Bug c++/14123] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: andr at triumf dot ca @ 2004-02-12  2:42 UTC (permalink / raw)
  To: gcc-bugs

There is an odd number of parentheses in g++ error message on the code below:

struct B { int b[10]; };
struct D : public B { int d; };

template<class T,int N> void f(int (T::*x1)[N], int T::*x2) {}

void ttt() 
{
  f(&D::b, &D::d);
}


The diagnostic I get with gcc-ss-3_4-20040211 looks like:

gccbug2.C: In function `void ttt()':
gccbug2.C:13: error: no matching function for call to `f(int B::*)[10], int D::*)'

The problem is present in 3.2 as well.

-- 
           Summary: odd number of parentheses in error message
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andr at triumf dot ca
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/14123] odd number of parentheses in error message
  2004-02-12  2:42 [Bug c++/14123] New: odd number of parentheses in error message andr at triumf dot ca
@ 2004-02-12  2:53 ` pinskia at gcc dot gnu dot org
  2004-02-12  8:40 ` gdr at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-12  2:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-12 02:53 -------
Confirmed.  and not a regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
      Known to fail|                            |2.95.3 3.0.4 3.2.2 3.2.3
                   |                            |3.3.1 3.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-12 02:53:51
               date|                            |


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


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

* [Bug c++/14123] odd number of parentheses in error message
  2004-02-12  2:42 [Bug c++/14123] New: odd number of parentheses in error message andr at triumf dot ca
  2004-02-12  2:53 ` [Bug c++/14123] " pinskia at gcc dot gnu dot org
@ 2004-02-12  8:40 ` gdr at gcc dot gnu dot org
  2004-06-11 16:36 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-02-12  8:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-02-12 08:40 -------
Blah

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


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


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

* [Bug c++/14123] odd number of parentheses in error message
  2004-02-12  2:42 [Bug c++/14123] New: odd number of parentheses in error message andr at triumf dot ca
  2004-02-12  2:53 ` [Bug c++/14123] " pinskia at gcc dot gnu dot org
  2004-02-12  8:40 ` gdr at gcc dot gnu dot org
@ 2004-06-11 16:36 ` pinskia at gcc dot gnu dot org
  2004-06-11 16:42 ` bangerth at dealii dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-11 16:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-11 16:36 -------
*** Bug 15943 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at dealii dot org


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


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

* [Bug c++/14123] odd number of parentheses in error message
  2004-02-12  2:42 [Bug c++/14123] New: odd number of parentheses in error message andr at triumf dot ca
                   ` (2 preceding siblings ...)
  2004-06-11 16:36 ` pinskia at gcc dot gnu dot org
@ 2004-06-11 16:42 ` bangerth at dealii dot org
  2004-06-27 21:36 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bangerth at dealii dot org @ 2004-06-11 16:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-06-11 16:42 -------
A simpler testcase is the one from PR  15943:  
--------------   
struct a {   
    int x[8];   
};   
   
int main () {   
  int a::*n[8];   
  n = &a::x;   
}   
--------------   
  
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc  
x.cc: In function `int main()':  
x.cc:8: error: incompatible types in assignment of `int a::*)[8]' to `int  
a::*[8]'  
 
W.  

-- 


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


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

* [Bug c++/14123] odd number of parentheses in error message
  2004-02-12  2:42 [Bug c++/14123] New: odd number of parentheses in error message andr at triumf dot ca
                   ` (3 preceding siblings ...)
  2004-06-11 16:42 ` bangerth at dealii dot org
@ 2004-06-27 21:36 ` cvs-commit at gcc dot gnu dot org
  2004-06-27 21:44 ` gdr at gcc dot gnu dot org
  2004-07-10  0:34 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-27 21:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-27 21:36 -------
Subject: Bug 14123

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	gdr@gcc.gnu.org	2004-06-27 21:36:00

Modified files:
	gcc/cp         : ChangeLog cxx-pretty-print.c error.c 
Added files:
	gcc/testsuite/g++.dg/other: ptrmem5.C 

Log message:
	PR c++/14123
	* cxx-pretty-print.c (pp_cxx_ptr_operator): Properly put
	paranthesis in case of pointers to array members.
	* error.c (dump_type_prefix): Likewise.
	(dump_type_suffix): Maybe issue a whitespace when printing
	ARRAY_TYPE.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4135&r2=1.4136
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cxx-pretty-print.c.diff?cvsroot=gcc&r1=1.24&r2=1.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&r1=1.253&r2=1.254
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/other/ptrmem5.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/14123] odd number of parentheses in error message
  2004-02-12  2:42 [Bug c++/14123] New: odd number of parentheses in error message andr at triumf dot ca
                   ` (4 preceding siblings ...)
  2004-06-27 21:36 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-27 21:44 ` gdr at gcc dot gnu dot org
  2004-07-10  0:34 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-06-27 21:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-06-27 21:41 -------
http://gcc.gnu.org/ml/gcc-patches/2004-06/msg02285.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/14123] odd number of parentheses in error message
  2004-02-12  2:42 [Bug c++/14123] New: odd number of parentheses in error message andr at triumf dot ca
                   ` (5 preceding siblings ...)
  2004-06-27 21:44 ` gdr at gcc dot gnu dot org
@ 2004-07-10  0:34 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-10  0:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.5.0


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


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

end of thread, other threads:[~2004-07-10  0:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-12  2:42 [Bug c++/14123] New: odd number of parentheses in error message andr at triumf dot ca
2004-02-12  2:53 ` [Bug c++/14123] " pinskia at gcc dot gnu dot org
2004-02-12  8:40 ` gdr at gcc dot gnu dot org
2004-06-11 16:36 ` pinskia at gcc dot gnu dot org
2004-06-11 16:42 ` bangerth at dealii dot org
2004-06-27 21:36 ` cvs-commit at gcc dot gnu dot org
2004-06-27 21:44 ` gdr at gcc dot gnu dot org
2004-07-10  0:34 ` pinskia 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).