public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19965] New: Invalid member declaration diagnosed late
@ 2005-02-15 12:32 reichelt at gcc dot gnu dot org
  2005-02-15 12:56 ` [Bug c++/19965] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-15 12:32 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet is accepted since 2.95.3:

==================
template<int> struct A
{
    A : 2;
};
==================

It is correctly rejected if I instantiate the template.

-- 
           Summary: Invalid member declaration diagnosed late
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/19965] Invalid member declaration diagnosed late
  2005-02-15 12:32 [Bug c++/19965] New: Invalid member declaration diagnosed late reichelt at gcc dot gnu dot org
@ 2005-02-15 12:56 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-15 12:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-15 01:01 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-15 01:01:26
               date|                            |


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


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

* [Bug c++/19965] Invalid member declaration diagnosed late
       [not found] <bug-19965-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-24  0:16 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-24  0:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed since GCC 10.
<source>:3:9: error: name 'A<<anonymous> >' has incomplete type
    3 |     A : 2;
      |         ^

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

end of thread, other threads:[~2021-07-24  0:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-15 12:32 [Bug c++/19965] New: Invalid member declaration diagnosed late reichelt at gcc dot gnu dot org
2005-02-15 12:56 ` [Bug c++/19965] " pinskia at gcc dot gnu dot org
     [not found] <bug-19965-4@http.gcc.gnu.org/bugzilla/>
2021-07-24  0:16 ` pinskia 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).