public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21120] Empty declaration with typeof accepted
       [not found] <bug-21120-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-03 10:24 ` paolo.carlini at oracle dot com
  2012-01-03 14:55 ` jason at gcc dot gnu.org
  2012-01-07 16:21 ` reichelt at gcc dot gnu.org
  2 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-03 10:24 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-03 10:24:07 UTC ---
I think the reason we are not erroring out is that, eg the first snippet, is
parsed like:

struct A {};
void foo() { struct A; }

which is fine (and my guess is consistent with the int case).

In any case, typeof is a very old extension (now obsoleted by decltype in C++)
and we have been accepting the syntax for such a long time, I don't think we
really want to "fix" this anyway. Closing?


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

* [Bug c++/21120] Empty declaration with typeof accepted
       [not found] <bug-21120-4@http.gcc.gnu.org/bugzilla/>
  2012-01-03 10:24 ` [Bug c++/21120] Empty declaration with typeof accepted paolo.carlini at oracle dot com
@ 2012-01-03 14:55 ` jason at gcc dot gnu.org
  2012-01-07 16:21 ` reichelt at gcc dot gnu.org
  2 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-03 14:55 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-03 14:55:06 UTC ---
(In reply to comment #3)
> In any case, typeof is a very old extension (now obsoleted by decltype in C++)
> and we have been accepting the syntax for such a long time, I don't think we
> really want to "fix" this anyway. Closing?

Agreed.


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

* [Bug c++/21120] Empty declaration with typeof accepted
       [not found] <bug-21120-4@http.gcc.gnu.org/bugzilla/>
  2012-01-03 10:24 ` [Bug c++/21120] Empty declaration with typeof accepted paolo.carlini at oracle dot com
  2012-01-03 14:55 ` jason at gcc dot gnu.org
@ 2012-01-07 16:21 ` reichelt at gcc dot gnu.org
  2 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2012-01-07 16:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Volker Reichelt <reichelt at gcc dot gnu.org> 2012-01-07 16:21:08 UTC ---
Well, "decltype" has the same problems, so I opened a new bug report, see
PR51786.


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

* [Bug c++/21120] Empty declaration with typeof accepted
  2005-04-20  9:56 [Bug c++/21120] New: " reichelt at gcc dot gnu dot org
  2005-05-02 18:56 ` [Bug c++/21120] " bangerth at dealii dot org
@ 2005-05-02 19:09 ` gdr at integrable-solutions dot net
  1 sibling, 0 replies; 5+ messages in thread
From: gdr at integrable-solutions dot net @ 2005-05-02 19:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at integrable-solutions dot net  2005-05-02 19:09 -------
Subject: Re:  Empty declaration with typeof accepted

"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| Confirmed. Funny enough, icc accepts the code as well... 

would there be compilers union consipracy? ;-)

-- Gaby


-- 


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


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

* [Bug c++/21120] Empty declaration with typeof accepted
  2005-04-20  9:56 [Bug c++/21120] New: " reichelt at gcc dot gnu dot org
@ 2005-05-02 18:56 ` bangerth at dealii dot org
  2005-05-02 19:09 ` gdr at integrable-solutions dot net
  1 sibling, 0 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2005-05-02 18:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2005-05-02 18:56 -------
Confirmed. Funny enough, icc accepts the code as well... 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-02 18:56:39
               date|                            |


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


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

end of thread, other threads:[~2012-01-07 16:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-21120-4@http.gcc.gnu.org/bugzilla/>
2012-01-03 10:24 ` [Bug c++/21120] Empty declaration with typeof accepted paolo.carlini at oracle dot com
2012-01-03 14:55 ` jason at gcc dot gnu.org
2012-01-07 16:21 ` reichelt at gcc dot gnu.org
2005-04-20  9:56 [Bug c++/21120] New: " reichelt at gcc dot gnu dot org
2005-05-02 18:56 ` [Bug c++/21120] " bangerth at dealii dot org
2005-05-02 19:09 ` gdr at integrable-solutions dot net

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).