public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48838] New: [4.6 Regression] valid template code does not compile
@ 2011-04-30 23:46 b.buschinski at web dot de
  2011-05-01  0:00 ` [Bug c++/48838] " paolo.carlini at oracle dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: b.buschinski at web dot de @ 2011-04-30 23:46 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] valid template code does not compile
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: b.buschinski@web.de


Created attachment 24154
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24154
reduced testcase

gcc kdevtest2.cpp 
kdevtest2.cpp: In constructor
'DUChainItemRegistrator<T>::DUChainItemRegistrator()':
kdevtest2.cpp:13:50: error: expected primary-expression before '>' token
kdevtest2.cpp:13:52: error: expected primary-expression before ')' token

fails with
gcc 4.6.1 20110430 rev. 173224

works fine with
gcc 4.5.2

(some people told me that it also works fine with 4.6.1 20110329)


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

* [Bug c++/48838] [4.6 Regression] valid template code does not compile
  2011-04-30 23:46 [Bug c++/48838] New: [4.6 Regression] valid template code does not compile b.buschinski at web dot de
@ 2011-05-01  0:00 ` paolo.carlini at oracle dot com
  2011-05-02 10:47 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-01  0:00 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-30 23:58:55 UTC ---
Note that like this, it still works:

  DUChainItemSystem::self().template registerTypeClass<T>();


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

* [Bug c++/48838] [4.6 Regression] valid template code does not compile
  2011-04-30 23:46 [Bug c++/48838] New: [4.6 Regression] valid template code does not compile b.buschinski at web dot de
  2011-05-01  0:00 ` [Bug c++/48838] " paolo.carlini at oracle dot com
@ 2011-05-02 10:47 ` rguenth at gcc dot gnu.org
  2011-05-02 19:54 ` [Bug c++/48838] [4.6/4.7 " jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-05-02 10:47 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.6.0
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2011.05.02 10:32:20
     Ever Confirmed|0                           |1
   Target Milestone|---                         |4.6.1
      Known to fail|                            |4.6.1, 4.7.0

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-05-02 10:32:20 UTC ---
Confirmed.  Regression on the branch, needs investigation.


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

* [Bug c++/48838] [4.6/4.7 Regression] valid template code does not compile
  2011-04-30 23:46 [Bug c++/48838] New: [4.6 Regression] valid template code does not compile b.buschinski at web dot de
  2011-05-01  0:00 ` [Bug c++/48838] " paolo.carlini at oracle dot com
  2011-05-02 10:47 ` rguenth at gcc dot gnu.org
@ 2011-05-02 19:54 ` jakub at gcc dot gnu.org
  2011-05-03 19:39 ` dodji at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-02 19:54 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dodji at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org
            Summary|[4.6 Regression] valid      |[4.6/4.7 Regression] valid
                   |template code does not      |template code does not
                   |compile                     |compile

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-02 19:46:01 UTC ---
This started with:
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173123


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

* [Bug c++/48838] [4.6/4.7 Regression] valid template code does not compile
  2011-04-30 23:46 [Bug c++/48838] New: [4.6 Regression] valid template code does not compile b.buschinski at web dot de
                   ` (2 preceding siblings ...)
  2011-05-02 19:54 ` [Bug c++/48838] [4.6/4.7 " jakub at gcc dot gnu.org
@ 2011-05-03 19:39 ` dodji at gcc dot gnu.org
  2011-05-03 20:26 ` dodji at seketeli dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-05-03 19:39 UTC (permalink / raw)
  To: gcc-bugs

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

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

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


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

* [Bug c++/48838] [4.6/4.7 Regression] valid template code does not compile
  2011-04-30 23:46 [Bug c++/48838] New: [4.6 Regression] valid template code does not compile b.buschinski at web dot de
                   ` (3 preceding siblings ...)
  2011-05-03 19:39 ` dodji at gcc dot gnu.org
@ 2011-05-03 20:26 ` dodji at seketeli dot org
  2011-05-06  8:36 ` dodji at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at seketeli dot org @ 2011-05-03 20:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from dodji at seketeli dot org <dodji at seketeli dot org> 2011-05-03 20:15:50 UTC ---
A candidate patch was posted to
http://gcc.gnu.org/ml/gcc-patches/2011-05/msg00219.html


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

* [Bug c++/48838] [4.6/4.7 Regression] valid template code does not compile
  2011-04-30 23:46 [Bug c++/48838] New: [4.6 Regression] valid template code does not compile b.buschinski at web dot de
                   ` (4 preceding siblings ...)
  2011-05-03 20:26 ` dodji at seketeli dot org
@ 2011-05-06  8:36 ` dodji at gcc dot gnu.org
  2011-05-06  9:00 ` dodji at gcc dot gnu.org
  2011-05-06 10:40 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-05-06  8:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-05-06 08:35:00 UTC ---
Author: dodji
Date: Fri May  6 08:34:53 2011
New Revision: 173473

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173473
Log:
Fix PR c++/48838

gcc/cp

    PR c++/48838
    * cp-tree.h (non_static_member_function_p): Declare new function.
    * tree.c (non_static_member_function_p): Define it.
    * semantics.c (finish_call_expr): Use it.

gcc/testsuite

    PR c++/48838
    * g++.dg/template/member9.C: New test case.

Added:
    trunk/gcc/testsuite/g++.dg/template/member9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/48838] [4.6/4.7 Regression] valid template code does not compile
  2011-04-30 23:46 [Bug c++/48838] New: [4.6 Regression] valid template code does not compile b.buschinski at web dot de
                   ` (5 preceding siblings ...)
  2011-05-06  8:36 ` dodji at gcc dot gnu.org
@ 2011-05-06  9:00 ` dodji at gcc dot gnu.org
  2011-05-06 10:40 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-05-06  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-05-06 08:34:18 UTC ---
Author: dodji
Date: Fri May  6 08:34:10 2011
New Revision: 173472

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173472
Log:
Fix PR c++/48838

gcc/cp

    PR c++/48838
    * cp-tree.h (non_static_member_function_p): Declare new function.
    * tree.c (non_static_member_function_p): Define it.
    * semantics.c (finish_call_expr): Use it.

gcc/testsuite

    PR c++/48838
    * g++.dg/template/member9.C: New test case.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/template/member9.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/cp-tree.h
    branches/gcc-4_6-branch/gcc/cp/semantics.c
    branches/gcc-4_6-branch/gcc/cp/tree.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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

* [Bug c++/48838] [4.6/4.7 Regression] valid template code does not compile
  2011-04-30 23:46 [Bug c++/48838] New: [4.6 Regression] valid template code does not compile b.buschinski at web dot de
                   ` (6 preceding siblings ...)
  2011-05-06  9:00 ` dodji at gcc dot gnu.org
@ 2011-05-06 10:40 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-06 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-06 10:30:30 UTC ---
Fixed.


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

end of thread, other threads:[~2011-05-06 10:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-30 23:46 [Bug c++/48838] New: [4.6 Regression] valid template code does not compile b.buschinski at web dot de
2011-05-01  0:00 ` [Bug c++/48838] " paolo.carlini at oracle dot com
2011-05-02 10:47 ` rguenth at gcc dot gnu.org
2011-05-02 19:54 ` [Bug c++/48838] [4.6/4.7 " jakub at gcc dot gnu.org
2011-05-03 19:39 ` dodji at gcc dot gnu.org
2011-05-03 20:26 ` dodji at seketeli dot org
2011-05-06  8:36 ` dodji at gcc dot gnu.org
2011-05-06  9:00 ` dodji at gcc dot gnu.org
2011-05-06 10:40 ` jakub at gcc dot gnu.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).