public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12577] typeof does not qualify as unqualified-id in certain contexts
       [not found] <bug-12577-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-20  1:34 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-20  1:34 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-20 01:29:24 UTC ---
t.cc:26:45: error: redefinition of ‘void (bar::* const foo<bar,
int>::setter)(int)’
t.cc:17:46: error: ‘void (bar::* const foo<bar, int>::setter)(int)’ previously
declared here
t.cc:37:52: error: expected unqualified-id before ‘*’ token
t.cc:37:54: error: expected primary-expression before ‘const’
t.cc:37:72: error: ‘JustAPointer<bar>()->bar::getfoobar()’ cannot be used as a
function
t.cc:37:74: error: expected primary-expression before ‘void’
t.cc:38:7: error: expected unqualified-id before ‘=’ token
t.cc:42:52: error: expected unqualified-id before ‘*’ token
t.cc:42:54: error: expected primary-expression before ‘const’
t.cc:42:68: error: expected primary-expression before ‘__typeof__’
t.cc:42:121: error: ‘JustAPointer<bar>()->bar::getfoobar()’ cannot be used as a
function
t.cc:42:123: error: expected primary-expression before ‘void’
t.cc:43:5: error: expected unqualified-id before ‘=’ token

--- CUT ---
If I use decltype instead of typeof we get:
t.cc:27:45: error: redefinition of ‘void (bar::* const foo<bar,
int>::setter)(int)’
t.cc:18:46: error: ‘void (bar::* const foo<bar, int>::setter)(int)’ previously
declared here
t.cc:43:127: error: conflicting declaration ‘int (bar::* const foo<bar,
int>::setter)()’
t.cc:18:46: error: ‘foo<bar, int>::setter’ has a previous declaration as ‘void
(bar::* const foo<bar, int>::setter)(int)’

Which looks correct so I am going to close as won't fix as decltype is the more
correct choice now.


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

* [Bug c++/12577] typeof does not qualify as unqualified-id in certain contexts
  2003-10-11 12:59 [Bug c++/12577] New: " gabor dot greif at lucent dot com
  2003-10-11 16:26 ` [Bug c++/12577] " pinskia at gcc dot gnu dot org
  2003-10-11 16:29 ` pinskia at gcc dot gnu dot org
@ 2003-11-12  3:16 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-11-12  3:16 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 12577 depends on bug 12581, which changed state.

Bug 12581 Summary: [3.4 Regression] gcc rejects typeof use for the return type
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12581

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
             Status|NEW                         |ASSIGNED
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |INVALID

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


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

* [Bug c++/12577] typeof does not qualify as unqualified-id in certain contexts
  2003-10-11 12:59 [Bug c++/12577] New: " gabor dot greif at lucent dot com
  2003-10-11 16:26 ` [Bug c++/12577] " pinskia at gcc dot gnu dot org
@ 2003-10-11 16:29 ` pinskia at gcc dot gnu dot org
  2003-11-12  3:16 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-11 16:29 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=12577


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2003-10-11 16:29:32
               date|                            |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-11 16:29 -------
I can confirm this on the mainline, every thing here is not a regression except for one I split out 
into PR 12581.


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

* [Bug c++/12577] typeof does not qualify as unqualified-id in certain contexts
  2003-10-11 12:59 [Bug c++/12577] New: " gabor dot greif at lucent dot com
@ 2003-10-11 16:26 ` pinskia at gcc dot gnu dot org
  2003-10-11 16:29 ` pinskia at gcc dot gnu dot org
  2003-11-12  3:16 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-11 16:26 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=12577


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |12581


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

end of thread, other threads:[~2012-01-20  1:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-12577-4@http.gcc.gnu.org/bugzilla/>
2012-01-20  1:34 ` [Bug c++/12577] typeof does not qualify as unqualified-id in certain contexts pinskia at gcc dot gnu.org
2003-10-11 12:59 [Bug c++/12577] New: " gabor dot greif at lucent dot com
2003-10-11 16:26 ` [Bug c++/12577] " pinskia at gcc dot gnu dot org
2003-10-11 16:29 ` pinskia at gcc dot gnu dot org
2003-11-12  3:16 ` mmitchel 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).