public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15943] Garbled message for invalid pointer to member conversions
  2004-06-11 16:28 [Bug c++/15943] New: Garbled message for invalid pointer to member conversions bangerth at dealii dot org
@ 2004-06-11 16:28 ` bangerth at dealii dot org
  2004-06-11 16:34 ` pinskia at gcc dot gnu dot org
  2004-06-11 16:36 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-06-11 16:28 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |2.95.3 3.2.3 3.3.4 3.4.0
                   |                            |3.5.0


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


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

* [Bug c++/15943] New: Garbled message for invalid pointer to member conversions
@ 2004-06-11 16:28 bangerth at dealii dot org
  2004-06-11 16:28 ` [Bug c++/15943] " bangerth at dealii dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-06-11 16:28 UTC (permalink / raw)
  To: gcc-bugs

Here's a piece of invalid code: 
-------------- 
struct a { 
    int x[8]; 
}; 
 
int main () { 
  int a::*n[8]; 
  n = &a::x; 
} 
-------------- 
The guy wrote this accidently allocated an array of 8 pointer-to-int-member, 
rather than a pointer-to-int[8]-member. The error message is garbled, though: 
 
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]' 
 
Note that the first given type has only a single dangling parenthesis. This 
bug dates back to at least 2.95. 
 
W.

-- 
           Summary: Garbled message for invalid pointer to member
                    conversions
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org,gdr at gcc dot gnu dot
                    org


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


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

* [Bug c++/15943] Garbled message for invalid pointer to member conversions
  2004-06-11 16:28 [Bug c++/15943] New: Garbled message for invalid pointer to member conversions bangerth at dealii dot org
  2004-06-11 16:28 ` [Bug c++/15943] " bangerth at dealii dot org
@ 2004-06-11 16:34 ` pinskia at gcc dot gnu dot org
  2004-06-11 16:36 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-11 16:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-11 16:34 -------
Confirmed, I thought I saw this before.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-11 16:34:41
               date|                            |


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


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

* [Bug c++/15943] Garbled message for invalid pointer to member conversions
  2004-06-11 16:28 [Bug c++/15943] New: Garbled message for invalid pointer to member conversions bangerth at dealii dot org
  2004-06-11 16:28 ` [Bug c++/15943] " bangerth at dealii dot org
  2004-06-11 16:34 ` pinskia at gcc dot gnu dot org
@ 2004-06-11 16:36 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ 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 -------
Yes PR 14123.

*** This bug has been marked as a duplicate of 14123 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2004-06-11 16:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-11 16:28 [Bug c++/15943] New: Garbled message for invalid pointer to member conversions bangerth at dealii dot org
2004-06-11 16:28 ` [Bug c++/15943] " bangerth at dealii dot org
2004-06-11 16:34 ` pinskia at gcc dot gnu dot org
2004-06-11 16:36 ` 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).