public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36334]  New: typedef to function type leads to probelms
@ 2008-05-26 14:00 dominik dot strasser at onespin-solutions dot com
  2008-05-26 14:01 ` [Bug c++/36334] " dominik dot strasser at onespin-solutions dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dominik dot strasser at onespin-solutions dot com @ 2008-05-26 14:00 UTC (permalink / raw)
  To: gcc-bugs

The attached source is accepted by gcc 4.1.2, but not by 4.3.0.
It is also accepted by e.g. the SUN C++ compiler.

I didn't find anything in the release notes why it shouldn't be accepted any
more.


-- 
           Summary: typedef to function type leads to probelms
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominik dot strasser at onespin-solutions dot com


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


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

* [Bug c++/36334] typedef to function type leads to probelms
  2008-05-26 14:00 [Bug c++/36334] New: typedef to function type leads to probelms dominik dot strasser at onespin-solutions dot com
@ 2008-05-26 14:01 ` dominik dot strasser at onespin-solutions dot com
  2008-05-26 14:47 ` [Bug c++/36334] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominik dot strasser at onespin-solutions dot com @ 2008-05-26 14:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dominik dot strasser at onespin-solutions dot com  2008-05-26 14:01 -------
Created an attachment (id=15686)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15686&action=view)
Source code illustrating the problem


-- 


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


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

* [Bug c++/36334] [4.2/4.3/4.4 Regression] typedef to function type leads to probelms
  2008-05-26 14:00 [Bug c++/36334] New: typedef to function type leads to probelms dominik dot strasser at onespin-solutions dot com
  2008-05-26 14:01 ` [Bug c++/36334] " dominik dot strasser at onespin-solutions dot com
@ 2008-05-26 14:47 ` rguenth at gcc dot gnu dot org
  2008-11-04 21:10 ` [Bug c++/36334] [4.2/4.3/4.4 Regression] typedef to function type leads to problems jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-26 14:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-05-26 14:46 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |rejects-valid
      Known to work|                            |4.1.3
           Priority|P3                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2008-05-26 14:46:26
               date|                            |
            Summary|typedef to function type    |[4.2/4.3/4.4 Regression]
                   |leads to probelms           |typedef to function type
                   |                            |leads to probelms
   Target Milestone|---                         |4.2.5


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


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

* [Bug c++/36334] [4.2/4.3/4.4 Regression] typedef to function type leads to problems
  2008-05-26 14:00 [Bug c++/36334] New: typedef to function type leads to probelms dominik dot strasser at onespin-solutions dot com
  2008-05-26 14:01 ` [Bug c++/36334] " dominik dot strasser at onespin-solutions dot com
  2008-05-26 14:47 ` [Bug c++/36334] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2008-11-04 21:10 ` jakub at gcc dot gnu dot org
  2009-01-14 16:49 ` jason at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-04 21:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-11-04 21:08 -------
Caused by PR28588 fix, http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116468


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/36334] [4.2/4.3/4.4 Regression] typedef to function type leads to problems
  2008-05-26 14:00 [Bug c++/36334] New: typedef to function type leads to probelms dominik dot strasser at onespin-solutions dot com
                   ` (2 preceding siblings ...)
  2008-11-04 21:10 ` [Bug c++/36334] [4.2/4.3/4.4 Regression] typedef to function type leads to problems jakub at gcc dot gnu dot org
@ 2009-01-14 16:49 ` jason at gcc dot gnu dot org
  2009-01-15 18:15 ` jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-14 16:49 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-05-26 14:46:26         |2009-01-14 16:49:27
               date|                            |


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


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

* [Bug c++/36334] [4.2/4.3/4.4 Regression] typedef to function type leads to problems
  2008-05-26 14:00 [Bug c++/36334] New: typedef to function type leads to probelms dominik dot strasser at onespin-solutions dot com
                   ` (3 preceding siblings ...)
  2009-01-14 16:49 ` jason at gcc dot gnu dot org
@ 2009-01-15 18:15 ` jason at gcc dot gnu dot org
  2009-01-15 22:35 ` [Bug c++/36334] [4.2/4.3 " jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-15 18:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2009-01-15 18:14 -------
Subject: Bug 36334

Author: jason
Date: Thu Jan 15 18:14:32 2009
New Revision: 143404

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143404
Log:
        PR c++/36334
        PR c++/37646
        * tree.c (lvalue_p_1): Handle BASELINK.  A COMPONENT_REF to
        a function isn't necessarily an lvalue. Take tree, not const_tree.
        (lvalue_p, real_lvalue_p): Take tree, not const_tree.
        * typeck.c (lvalue_or_else): Likewise.
        * cp-tree.h: Adjust prototypes.

Added:
    trunk/gcc/testsuite/g++.dg/conversion/memfn1.C
    trunk/gcc/testsuite/g++.dg/conversion/memfn2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/tree.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/36334] [4.2/4.3 Regression] typedef to function type leads to problems
  2008-05-26 14:00 [Bug c++/36334] New: typedef to function type leads to probelms dominik dot strasser at onespin-solutions dot com
                   ` (4 preceding siblings ...)
  2009-01-15 18:15 ` jason at gcc dot gnu dot org
@ 2009-01-15 22:35 ` jason at gcc dot gnu dot org
  2009-01-15 22:57 ` [Bug c++/36334] [4.2 " jason at gcc dot gnu dot org
  2009-05-20 15:00 ` dominik dot strasser at onespin-solutions dot com
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-15 22:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jason at gcc dot gnu dot org  2009-01-15 22:34 -------
Subject: Bug 36334

Author: jason
Date: Thu Jan 15 22:34:20 2009
New Revision: 143413

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143413
Log:
        PR c++/36334
        PR c++/37646
        * tree.c (lvalue_p_1): Handle BASELINK.  A COMPONENT_REF to
        a function isn't necessarily an lvalue. Take tree, not const_tree.
        (lvalue_p, real_lvalue_p): Take tree, not const_tree.
        * typeck.c (lvalue_or_else): Likewise.
        * cp-tree.h: Adjust prototypes.

        PR c++/31488
        * tree.c (pod_type_p): Return 1 for structs created by the back end.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/conversion/memfn1.C
      - copied unchanged from r143404,
trunk/gcc/testsuite/g++.dg/conversion/memfn1.C
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/conversion/memfn2.C
      - copied unchanged from r143404,
trunk/gcc/testsuite/g++.dg/conversion/memfn2.C
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/other/vararg-3.C
      - copied unchanged from r143308,
trunk/gcc/testsuite/g++.dg/other/vararg-3.C
Modified:
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/cp-tree.h
    branches/gcc-4_3-branch/gcc/cp/tree.c
    branches/gcc-4_3-branch/gcc/cp/typeck.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/36334] [4.2 Regression] typedef to function type leads to problems
  2008-05-26 14:00 [Bug c++/36334] New: typedef to function type leads to probelms dominik dot strasser at onespin-solutions dot com
                   ` (5 preceding siblings ...)
  2009-01-15 22:35 ` [Bug c++/36334] [4.2/4.3 " jason at gcc dot gnu dot org
@ 2009-01-15 22:57 ` jason at gcc dot gnu dot org
  2009-05-20 15:00 ` dominik dot strasser at onespin-solutions dot com
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-15 22:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jason at gcc dot gnu dot org  2009-01-15 22:56 -------
Fixed for 4.3 and 4.4.  Not fixing for 4.2.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|4.1.3 4.4.0                 |4.1.3 4.3.3 4.4.0
         Resolution|                            |FIXED
            Summary|[4.2/4.3 Regression] typedef|[4.2 Regression] typedef to
                   |to function type leads to   |function type leads to
                   |problems                    |problems


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


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

* [Bug c++/36334] [4.2 Regression] typedef to function type leads to problems
  2008-05-26 14:00 [Bug c++/36334] New: typedef to function type leads to probelms dominik dot strasser at onespin-solutions dot com
                   ` (6 preceding siblings ...)
  2009-01-15 22:57 ` [Bug c++/36334] [4.2 " jason at gcc dot gnu dot org
@ 2009-05-20 15:00 ` dominik dot strasser at onespin-solutions dot com
  7 siblings, 0 replies; 9+ messages in thread
From: dominik dot strasser at onespin-solutions dot com @ 2009-05-20 15:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dominik dot strasser at onespin-solutions dot com  2009-05-20 14:59 -------
Works fine in 4.3.3


-- 

dominik dot strasser at onespin-solutions dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED


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


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

end of thread, other threads:[~2009-05-20 15:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-26 14:00 [Bug c++/36334] New: typedef to function type leads to probelms dominik dot strasser at onespin-solutions dot com
2008-05-26 14:01 ` [Bug c++/36334] " dominik dot strasser at onespin-solutions dot com
2008-05-26 14:47 ` [Bug c++/36334] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
2008-11-04 21:10 ` [Bug c++/36334] [4.2/4.3/4.4 Regression] typedef to function type leads to problems jakub at gcc dot gnu dot org
2009-01-14 16:49 ` jason at gcc dot gnu dot org
2009-01-15 18:15 ` jason at gcc dot gnu dot org
2009-01-15 22:35 ` [Bug c++/36334] [4.2/4.3 " jason at gcc dot gnu dot org
2009-01-15 22:57 ` [Bug c++/36334] [4.2 " jason at gcc dot gnu dot org
2009-05-20 15:00 ` dominik dot strasser at onespin-solutions dot com

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).