public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16160] New: Does not reject invalid attempt of explicit instantiation
@ 2004-06-23 16:35 bangerth at dealii dot org
  2004-07-11 14:53 ` [Bug c++/16160] " lerdsuwa at gcc dot gnu dot org
  2005-01-09  2:26 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2004-06-23 16:35 UTC (permalink / raw)
  To: gcc-bugs

This code is invalid, yet we do not (and never have) issue a diagnostic: 
------------------- 
template <int N> struct X {}; 
struct X<2>; 
------------------- 
 
That's particularly bad, since it can lead to very subtle problems: in my 
application, X had a whole number of members, and I had really meant to 
_instantiate_ it with 
  template struct X<2>; 
but forgot the 'template'. I just ended up with missing instantiations for 
which I didn't have a good explanation :-] 
 
W.

-- 
           Summary: Does not reject invalid attempt of explicit
                    instantiation
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         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


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


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

* [Bug c++/16160] Does not reject invalid attempt of explicit instantiation
  2004-06-23 16:35 [Bug c++/16160] New: Does not reject invalid attempt of explicit instantiation bangerth at dealii dot org
@ 2004-07-11 14:53 ` lerdsuwa at gcc dot gnu dot org
  2005-01-09  2:26 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-07-11 14:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2004-07-11 14:53 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-11 14:53:39
               date|                            |


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


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

* [Bug c++/16160] Does not reject invalid attempt of explicit instantiation
  2004-06-23 16:35 [Bug c++/16160] New: Does not reject invalid attempt of explicit instantiation bangerth at dealii dot org
  2004-07-11 14:53 ` [Bug c++/16160] " lerdsuwa at gcc dot gnu dot org
@ 2005-01-09  2:26 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-09  2:26 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
   Last reconfirmed|2004-10-10 02:09:55         |2005-01-09 02:26:03
               date|                            |


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


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

end of thread, other threads:[~2005-01-09  2:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-23 16:35 [Bug c++/16160] New: Does not reject invalid attempt of explicit instantiation bangerth at dealii dot org
2004-07-11 14:53 ` [Bug c++/16160] " lerdsuwa at gcc dot gnu dot org
2005-01-09  2:26 ` 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).