public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
       [not found] <bug-11814-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-09 13:53 ` bangerth at gmail dot com
  2011-10-09 14:02 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 20+ messages in thread
From: bangerth at gmail dot com @ 2011-10-09 13:53 UTC (permalink / raw)
  To: gcc-bugs

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

Wolfgang Bangerth <bangerth at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at gmail dot com

--- Comment #12 from Wolfgang Bangerth <bangerth at gmail dot com> 2011-10-09 13:52:05 UTC ---
Still happens with gcc4.5.1.


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
       [not found] <bug-11814-4@http.gcc.gnu.org/bugzilla/>
  2011-10-09 13:53 ` [Bug c++/11814] Code with missing "template" keyword wrongly accepted bangerth at gmail dot com
@ 2011-10-09 14:02 ` redi at gcc dot gnu.org
  2013-05-17 10:42 ` paolo.carlini at oracle dot com
  2015-01-15 18:02 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 20+ messages in thread
From: redi at gcc dot gnu.org @ 2011-10-09 14:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-09 14:01:26 UTC ---
and 4.7.0


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
       [not found] <bug-11814-4@http.gcc.gnu.org/bugzilla/>
  2011-10-09 13:53 ` [Bug c++/11814] Code with missing "template" keyword wrongly accepted bangerth at gmail dot com
  2011-10-09 14:02 ` redi at gcc dot gnu.org
@ 2013-05-17 10:42 ` paolo.carlini at oracle dot com
  2015-01-15 18:02 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 20+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-17 10:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #14 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 57312 has been marked as a duplicate of this bug. ***


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
       [not found] <bug-11814-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2013-05-17 10:42 ` paolo.carlini at oracle dot com
@ 2015-01-15 18:02 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-01-15 18:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11814

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvoosten at bankai dot nl

--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 64611 has been marked as a duplicate of this bug. ***


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
       [not found] <bug-11814-1771@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2008-12-27  6:38 ` pinskia at gcc dot gnu dot org
@ 2009-11-06 19:05 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-11-06 19:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2009-11-06 19:05 -------
*** Bug 41973 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sstrasser at systemhaus-
                   |                            |gruppe dot de


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


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
       [not found] <bug-11814-1771@http.gcc.gnu.org/bugzilla/>
  2006-01-04  1:11 ` pinskia at gcc dot gnu dot org
  2007-05-08 19:48 ` fang at csl dot cornell dot edu
@ 2008-12-27  6:38 ` pinskia at gcc dot gnu dot org
  2009-11-06 19:05 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-27  6:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2008-12-27 06:34 -------
*** Bug 37596 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
       [not found] <bug-11814-1771@http.gcc.gnu.org/bugzilla/>
  2006-01-04  1:11 ` pinskia at gcc dot gnu dot org
@ 2007-05-08 19:48 ` fang at csl dot cornell dot edu
  2008-12-27  6:38 ` pinskia at gcc dot gnu dot org
  2009-11-06 19:05 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 20+ messages in thread
From: fang at csl dot cornell dot edu @ 2007-05-08 19:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from fang at csl dot cornell dot edu  2007-05-08 20:48 -------
Still accepts-invalid with 4.2-20070430 (RC2).


-- 

fang at csl dot cornell dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fang at csl dot cornell dot
                   |                            |edu


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


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
       [not found] <bug-11814-1771@http.gcc.gnu.org/bugzilla/>
@ 2006-01-04  1:11 ` pinskia at gcc dot gnu dot org
  2007-05-08 19:48 ` fang at csl dot cornell dot edu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-04  1:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-01-04 01:11 -------
This is also related to PR 20308 (I think they are more than related, I think
they are the same bug but reproducing in a different way).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |20308
              nThis|                            |


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



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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-03-17 13:59 ` pinskia at gcc dot gnu dot org
@ 2005-03-25 20:38 ` redi at gcc dot gnu dot org
  11 siblings, 0 replies; 20+ messages in thread
From: redi at gcc dot gnu dot org @ 2005-03-25 20:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From redi at gcc dot gnu dot org  2005-03-25 20:38 -------
This can be simplified to:

template <class T> void f()
{
  T t;
  t.f<>(0); //should be t.template f<>(0);
}

If either 'f' is renamed g++ correctly reports an error.

Comeau's online compiler behaves the same.

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


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


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2004-07-27 16:08 ` lerdsuwa at gcc dot gnu dot org
@ 2005-03-17 13:59 ` pinskia at gcc dot gnu dot org
  2005-03-25 20:38 ` redi at gcc dot gnu dot org
  11 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-17 13:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-17 13:58 -------
*** Bug 20516 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |topiolli at ee dot oulu dot
                   |                            |fi


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


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2004-05-26 11:40 ` pinskia at gcc dot gnu dot org
@ 2004-07-27 16:08 ` lerdsuwa at gcc dot gnu dot org
  2005-03-17 13:59 ` pinskia at gcc dot gnu dot org
  2005-03-25 20:38 ` redi at gcc dot gnu dot org
  11 siblings, 0 replies; 20+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-07-27 16:08 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2003-11-23 11:36 ` lerdsuwa at gcc dot gnu dot org
@ 2004-05-26 11:40 ` pinskia at gcc dot gnu dot org
  2004-07-27 16:08 ` lerdsuwa at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-26 11:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-25 14:16 -------
Hmm, ICC 6.0 accepts the code also (even in strict mode).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-05-05 03:49:06         |2004-05-25 14:16:38
               date|                            |


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


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2003-11-07 16:34 ` reichelt at gcc dot gnu dot org
@ 2003-11-23 11:36 ` lerdsuwa at gcc dot gnu dot org
  2004-05-26 11:40 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2003-11-23 11:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2003-11-23 11:36 -------
Probably problem deciding if a name is dependent.

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


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


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2003-08-23  1:09 ` dhazeghi at yahoo dot com
@ 2003-11-07 16:34 ` reichelt at gcc dot gnu dot org
  2003-11-23 11:36 ` lerdsuwa at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-11-07 16:34 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |12944
              nThis|                            |


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2003-08-08  0:07 ` reichelt at gcc dot gnu dot org
@ 2003-08-23  1:09 ` dhazeghi at yahoo dot com
  2003-11-07 16:34 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23  1:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |---


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2003-08-06  0:38 ` pinskia at physics dot uc dot edu
@ 2003-08-08  0:07 ` reichelt at gcc dot gnu dot org
  2003-08-23  1:09 ` dhazeghi at yahoo dot com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-08-08  0:07 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From reichelt at gcc dot gnu dot org  2003-08-08 00:07 -------
Maybe related to PR 10200.


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2003-08-05 23:36 ` pinskia at physics dot uc dot edu
@ 2003-08-06  0:38 ` pinskia at physics dot uc dot edu
  2003-08-08  0:07 ` reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-06  0:38 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-06 00:38 -------
My comment in 1 is wrong, the example I gave is where they have the same type 
template agruments not different.


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
  2003-08-05 23:23 ` [Bug c++/11814] " reichelt at gcc dot gnu dot org
  2003-08-05 23:34 ` pinskia at physics dot uc dot edu
@ 2003-08-05 23:36 ` pinskia at physics dot uc dot edu
  2003-08-06  0:38 ` pinskia at physics dot uc dot edu
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-05 23:36 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-05 23:36:55
               date|                            |


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
  2003-08-05 23:23 ` [Bug c++/11814] " reichelt at gcc dot gnu dot org
@ 2003-08-05 23:34 ` pinskia at physics dot uc dot edu
  2003-08-05 23:36 ` pinskia at physics dot uc dot edu
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-05 23:34 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-05 23:34 -------
I can confirm this on the mainline (20030805).
Here is a more interesting example where the two template function foo take two different 
template arguments:
template <typename> struct A
{
    template <int> void foo();
};
template <typename T> struct B
{
    template <int> void foo()
    {
        A<T>* p;
        p->foo<1>(); // wrong: should be "p->template foo<1>();"  
    }
};


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

* [Bug c++/11814] Code with missing "template" keyword wrongly accepted
  2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
@ 2003-08-05 23:23 ` reichelt at gcc dot gnu dot org
  2003-08-05 23:34 ` pinskia at physics dot uc dot edu
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-08-05 23:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |6023
              nThis|                            |


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

end of thread, other threads:[~2015-01-15 18:02 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11814-4@http.gcc.gnu.org/bugzilla/>
2011-10-09 13:53 ` [Bug c++/11814] Code with missing "template" keyword wrongly accepted bangerth at gmail dot com
2011-10-09 14:02 ` redi at gcc dot gnu.org
2013-05-17 10:42 ` paolo.carlini at oracle dot com
2015-01-15 18:02 ` pinskia at gcc dot gnu.org
     [not found] <bug-11814-1771@http.gcc.gnu.org/bugzilla/>
2006-01-04  1:11 ` pinskia at gcc dot gnu dot org
2007-05-08 19:48 ` fang at csl dot cornell dot edu
2008-12-27  6:38 ` pinskia at gcc dot gnu dot org
2009-11-06 19:05 ` pinskia at gcc dot gnu dot org
2003-08-05 23:09 [Bug c++/11814] New: " reichelt at gcc dot gnu dot org
2003-08-05 23:23 ` [Bug c++/11814] " reichelt at gcc dot gnu dot org
2003-08-05 23:34 ` pinskia at physics dot uc dot edu
2003-08-05 23:36 ` pinskia at physics dot uc dot edu
2003-08-06  0:38 ` pinskia at physics dot uc dot edu
2003-08-08  0:07 ` reichelt at gcc dot gnu dot org
2003-08-23  1:09 ` dhazeghi at yahoo dot com
2003-11-07 16:34 ` reichelt at gcc dot gnu dot org
2003-11-23 11:36 ` lerdsuwa at gcc dot gnu dot org
2004-05-26 11:40 ` pinskia at gcc dot gnu dot org
2004-07-27 16:08 ` lerdsuwa at gcc dot gnu dot org
2005-03-17 13:59 ` pinskia at gcc dot gnu dot org
2005-03-25 20:38 ` redi 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).