public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18101] invalid declaration in struct not rejected
       [not found] <bug-18101-4@http.gcc.gnu.org/bugzilla/>
@ 2011-09-27  8:54 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-27  8:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|gcc-bugs at gcc dot gnu.org |
         Resolution|                            |INVALID

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-27 08:37:52 UTC ---
We produce a warning, exactly like ICC.


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

* [Bug c++/18101] invalid declaration in struct not rejected
       [not found] <bug-18101-1771@http.gcc.gnu.org/bugzilla/>
@ 2006-06-05  6:29 ` sambitdash at gmail dot com
  0 siblings, 0 replies; 3+ messages in thread
From: sambitdash at gmail dot com @ 2006-06-05  6:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sambitdash at gmail dot com  2006-06-05 06:22 -------
I am not sure if this code is invalid. 

It's no different from saying:

struct B
{
    struct A;
};

A is just a forward declaration here. 

In the following code is not invalid but the statement ::A is innocuous and for
::A to be defined struct A must have been defined in the global scope. 

==========================
struct A;

struct B
{
    struct ::A;
};
==========================

Hence, I will suggest this be marked as not a bug. 


-- 

sambitdash at gmail dot com changed:

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


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


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

* [Bug c++/18101] invalid declaration in struct not rejected
  2004-10-21 21:09 [Bug c++/18101] New: " reichelt at gcc dot gnu dot org
@ 2004-10-21 21:16 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-21 21:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-21 21:16 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-21 21:16:03
               date|                            |


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


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

end of thread, other threads:[~2011-09-27  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18101-4@http.gcc.gnu.org/bugzilla/>
2011-09-27  8:54 ` [Bug c++/18101] invalid declaration in struct not rejected paolo.carlini at oracle dot com
     [not found] <bug-18101-1771@http.gcc.gnu.org/bugzilla/>
2006-06-05  6:29 ` sambitdash at gmail dot com
2004-10-21 21:09 [Bug c++/18101] New: " reichelt at gcc dot gnu dot org
2004-10-21 21:16 ` [Bug c++/18101] " 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).