public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly.
       [not found] <bug-24314-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-21 16:49 ` paolo.carlini at oracle dot com
  2012-09-06  9:51 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-21 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Nimantha.Siriwardana at
                   |                            |googlemail dot com

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-21 16:48:59 UTC ---
*** Bug 49453 has been marked as a duplicate of this bug. ***


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

* [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly.
       [not found] <bug-24314-4@http.gcc.gnu.org/bugzilla/>
  2011-10-21 16:49 ` [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly paolo.carlini at oracle dot com
@ 2012-09-06  9:51 ` paolo.carlini at oracle dot com
  2021-12-25  4:03 ` pinskia at gcc dot gnu.org
  2021-12-25  4:03 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-09-06  9:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|gcc-bugs at gcc dot gnu.org |
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com
      Known to fail|                            |

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-06 09:50:19 UTC ---
Let's look a bit into this.


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

* [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly.
       [not found] <bug-24314-4@http.gcc.gnu.org/bugzilla/>
  2011-10-21 16:49 ` [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly paolo.carlini at oracle dot com
  2012-09-06  9:51 ` paolo.carlini at oracle dot com
@ 2021-12-25  4:03 ` pinskia at gcc dot gnu.org
  2021-12-25  4:03 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-25  4:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

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

* [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly.
       [not found] <bug-24314-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-12-25  4:03 ` pinskia at gcc dot gnu.org
@ 2021-12-25  4:03 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-25  4:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0

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

* [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly.
  2005-10-11 18:22 [Bug c++/24314] New: " shriram_vishwanathan at persistent dot co dot in
                   ` (3 preceding siblings ...)
  2005-12-12 22:32 ` reichelt at gcc dot gnu dot org
@ 2008-01-21 12:46 ` reichelt at gcc dot gnu dot org
  4 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-21 12:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2008-01-21 12:22 -------
*** Bug 34834 has been marked as a duplicate of this bug. ***


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sylvain dot pion at sophia
                   |                            |dot inria dot fr


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


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

* [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly.
  2005-10-11 18:22 [Bug c++/24314] New: " shriram_vishwanathan at persistent dot co dot in
                   ` (2 preceding siblings ...)
  2005-10-11 19:30 ` pinskia at gcc dot gnu dot org
@ 2005-12-12 22:32 ` reichelt at gcc dot gnu dot org
  2008-01-21 12:46 ` reichelt at gcc dot gnu dot org
  4 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-12-12 22:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2005-12-12 22:32 -------
More compact testcase:

=================================================
template<typename> struct A {};

template<> template<typename T> struct A<T*> {};

A<void*> a;
=================================================


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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


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

* [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly.
  2005-10-11 18:22 [Bug c++/24314] New: " shriram_vishwanathan at persistent dot co dot in
  2005-10-11 18:25 ` [Bug c++/24314] " pinskia at gcc dot gnu dot org
  2005-10-11 18:54 ` shriram_vishwanathan at persistent dot co dot in
@ 2005-10-11 19:30 ` pinskia at gcc dot gnu dot org
  2005-12-12 22:32 ` reichelt at gcc dot gnu dot org
  2008-01-21 12:46 ` reichelt at gcc dot gnu dot org
  4 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-11 19:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-10-11 19:30 -------
(In reply to comment #2)
> Wow, that was fast!
> What about this code?
> I am using g++ 4.0.1, and it compiles without any error.

Yes that should fail to compile.  Confirmed, not a regression.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|2.95.3 3.0.4 3.3.3 3.2.3    |2.95.3 3.0.4 3.3.3 3.2.3
                   |                            |3.4.0 4.0.0 4.1.0
      Known to work|3.4.0 4.0.0 4.1.0           |
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-11 19:30:56
               date|                            |
   Target Milestone|3.4.0                       |---


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


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

* [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly.
  2005-10-11 18:22 [Bug c++/24314] New: " shriram_vishwanathan at persistent dot co dot in
  2005-10-11 18:25 ` [Bug c++/24314] " pinskia at gcc dot gnu dot org
@ 2005-10-11 18:54 ` shriram_vishwanathan at persistent dot co dot in
  2005-10-11 19:30 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: shriram_vishwanathan at persistent dot co dot in @ 2005-10-11 18:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from shriram_vishwanathan at persistent dot co dot in  2005-10-11 18:54 -------
Wow, that was fast!
What about this code?
I am using g++ 4.0.1, and it compiles without any error.

---------------
// The base template.
template <class T>
struct A
{
   int select() { return 0; }
};

//Extra "template<>"
template <>
template <class T>
struct A<T*>
{
   int select() { return 1; }
};

int main()
{
   return A<int*>().select();
}
---------------



Compiler and Environment Details:
=================================

$ gcc -v -save-temps A.cpp
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.1/configure --prefix=/usr/local
Thread model: posix
gcc version 4.0.1
 /usr/local/bin/../libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -E -quiet -v
-iprefix /usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/ -D_GNU_SOURCE A.cpp
-mtune=pentiumpro -fpch-preprocess -o A.ii
ignoring nonexistent directory
"/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory
"/usr/local/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1"
ignoring duplicate directory
"/usr/local/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1/i686-pc-linux-gnu"
ignoring duplicate directory
"/usr/local/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1/backward"
ignoring duplicate directory
"/usr/local/lib/gcc/i686-pc-linux-gnu/4.0.1/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1

/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1/i686-pc-linux-gnu

/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1/backward
 /usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/include
 /usr/local/include
 /usr/include
End of search list.
 /usr/local/bin/../libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed
A.ii -quiet -dumpbase A.cpp -mtune=pentiumpro -auxbase A -version -o A.s
GNU C++ version 4.0.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 as -V -Qy -o A.o A.s
GNU assembler version 2.14.90.0.4 (i386-redhat-linux) using BFD version
2.14.90.0.4 20030523
 /usr/local/bin/../libexec/gcc/i686-pc-linux-gnu/4.0.1/collect2 --eh-frame-hdr
-m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/crtbegin.o
-L/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1 -L/usr/local/bin/../lib/gcc
-L/usr/local/lib/gcc/i686-pc-linux-gnu/4.0.1
-L/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/../../..
-L/usr/local/lib/gcc/i686-pc-linux-gnu/4.0.1/../../.. A.o -lgcc -lgcc_eh -lc
-lgcc -lgcc_eh /usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/crtend.o
/usr/lib/crtn.o


-- 

shriram_vishwanathan at persistent dot co dot in changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |
            Version|3.3.6                       |4.0.1


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


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

* [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly.
  2005-10-11 18:22 [Bug c++/24314] New: " shriram_vishwanathan at persistent dot co dot in
@ 2005-10-11 18:25 ` pinskia at gcc dot gnu dot org
  2005-10-11 18:54 ` shriram_vishwanathan at persistent dot co dot in
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-11 18:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-10-11 18:25 -------
Fixed in 3.4.0.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |accepts-invalid
      Known to fail|                            |2.95.3 3.0.4 3.3.3 3.2.3
      Known to work|                            |3.4.0 4.0.0 4.1.0
         Resolution|                            |FIXED
   Target Milestone|4.0.0                       |3.4.0
            Version|unknown                     |3.3.6


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


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

end of thread, other threads:[~2021-12-25  4:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-24314-4@http.gcc.gnu.org/bugzilla/>
2011-10-21 16:49 ` [Bug c++/24314] Extra "template<>" in partial specialization is compiled successfuly paolo.carlini at oracle dot com
2012-09-06  9:51 ` paolo.carlini at oracle dot com
2021-12-25  4:03 ` pinskia at gcc dot gnu.org
2021-12-25  4:03 ` pinskia at gcc dot gnu.org
2005-10-11 18:22 [Bug c++/24314] New: " shriram_vishwanathan at persistent dot co dot in
2005-10-11 18:25 ` [Bug c++/24314] " pinskia at gcc dot gnu dot org
2005-10-11 18:54 ` shriram_vishwanathan at persistent dot co dot in
2005-10-11 19:30 ` pinskia at gcc dot gnu dot org
2005-12-12 22:32 ` reichelt at gcc dot gnu dot org
2008-01-21 12:46 ` reichelt 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).