public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12349] New: gcc accepts specialization of template in typedef
@ 2003-09-21  4:25 bangerth at dealii dot org
  2003-09-21  4:36 ` [Bug c++/12349] " bangerth at dealii dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2003-09-21  4:25 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=12349

           Summary: gcc accepts specialization of template in typedef
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         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

Very minor problem: this is accepted though I think it shouldn't really: 
----------------------------------- 
template <int> struct X; 
template <> typedef struct X<0> {} T; 
----------------------------------- 
At least some other compilers barf at it. The fact that it is accepted 
is absolutely irrelevant, since one can't do anything with the so-declared 
type T -- if I try to use it in 
----------------------------------- 
template <int> struct X; 
template <> typedef struct X<0> {} T; 
T t; 
----------------------------------- 
I get from present mainline this: 
tmp/build-gcc> ../build-gcc/gcc-install/bin/c++ -c x.cc 
x.cc:3: error: `T' does not name a type 
 
 
W.


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

* [Bug c++/12349] gcc accepts specialization of template in typedef
  2003-09-21  4:25 [Bug c++/12349] New: gcc accepts specialization of template in typedef bangerth at dealii dot org
@ 2003-09-21  4:36 ` bangerth at dealii dot org
  2003-09-22 14:39 ` lerdsuwa at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2003-09-21  4: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=12349


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid


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

* [Bug c++/12349] gcc accepts specialization of template in typedef
  2003-09-21  4:25 [Bug c++/12349] New: gcc accepts specialization of template in typedef bangerth at dealii dot org
  2003-09-21  4:36 ` [Bug c++/12349] " bangerth at dealii dot org
@ 2003-09-22 14:39 ` lerdsuwa at gcc dot gnu dot org
  2004-01-02 11:20 ` lerdsuwa at gcc dot gnu dot org
  2005-09-10 19:24 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2003-09-22 14:39 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=12349


lerdsuwa at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-09-22 14:24:56
               date|                            |


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

* [Bug c++/12349] gcc accepts specialization of template in typedef
  2003-09-21  4:25 [Bug c++/12349] New: gcc accepts specialization of template in typedef bangerth at dealii dot org
  2003-09-21  4:36 ` [Bug c++/12349] " bangerth at dealii dot org
  2003-09-22 14:39 ` lerdsuwa at gcc dot gnu dot org
@ 2004-01-02 11:20 ` lerdsuwa at gcc dot gnu dot org
  2005-09-10 19:24 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-01-02 11:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2004-01-02 11:20 -------
Not working on it.

-- 
           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=12349


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

* [Bug c++/12349] gcc accepts specialization of template in typedef
  2003-09-21  4:25 [Bug c++/12349] New: gcc accepts specialization of template in typedef bangerth at dealii dot org
                   ` (2 preceding siblings ...)
  2004-01-02 11:20 ` lerdsuwa at gcc dot gnu dot org
@ 2005-09-10 19:24 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-10 19:24 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 517 bytes --]


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-10 19:24 -------
Fixed in 4.0.0:
t.cc:3: error: template declaration of ‘typedef’


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2005-09-10 19:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-21  4:25 [Bug c++/12349] New: gcc accepts specialization of template in typedef bangerth at dealii dot org
2003-09-21  4:36 ` [Bug c++/12349] " bangerth at dealii dot org
2003-09-22 14:39 ` lerdsuwa at gcc dot gnu dot org
2004-01-02 11:20 ` lerdsuwa at gcc dot gnu dot org
2005-09-10 19:24 ` 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).