public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25503] g++ accepts invalid typedef in template code
       [not found] <bug-25503-4@http.gcc.gnu.org/bugzilla/>
@ 2013-05-24  9:42 ` paolo.carlini at oracle dot com
  2013-05-24 10:08 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-24  9:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|gcc-bugs at gcc dot gnu.org        |
      Known to fail|                            |

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Also fixed for 4.8.0. I'm adding the test and closing the PR.


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

* [Bug c++/25503] g++ accepts invalid typedef in template code
       [not found] <bug-25503-4@http.gcc.gnu.org/bugzilla/>
  2013-05-24  9:42 ` [Bug c++/25503] g++ accepts invalid typedef in template code paolo.carlini at oracle dot com
@ 2013-05-24 10:08 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-24 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to work|                            |4.8.0, 4.9.0
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.8.0

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.


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

* [Bug c++/25503] g++ accepts invalid typedef in template code
  2005-12-20 12:25 [Bug c++/25503] New: " d dot bonekaemper at rtsgroup dot net
  2005-12-20 12:28 ` [Bug c++/25503] " d dot bonekaemper at rtsgroup dot net
@ 2005-12-20 16:03 ` bangerth at dealii dot org
  1 sibling, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2005-12-20 16:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bangerth at dealii dot org  2005-12-20 16:03 -------
Confirmed. The typedef is only rejected if it is actually used to define
a variable.

W.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2005-12-20 16:03:30
               date|                            |


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


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

* [Bug c++/25503] g++ accepts invalid typedef in template code
  2005-12-20 12:25 [Bug c++/25503] New: " d dot bonekaemper at rtsgroup dot net
@ 2005-12-20 12:28 ` d dot bonekaemper at rtsgroup dot net
  2005-12-20 16:03 ` bangerth at dealii dot org
  1 sibling, 0 replies; 4+ messages in thread
From: d dot bonekaemper at rtsgroup dot net @ 2005-12-20 12:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from d dot bonekaemper at rtsgroup dot net  2005-12-20 12:28 -------
(Sorry, pressed return to early...)

g++ accepts the following code, which contains a typedef that's supposed to act
as a static assert. 
-------------------------------------------------------------------------------
template<int N>
struct Test
{
    Test()
    {
        typedef struct StaticAssert {unsigned condition : (N); } XXX;
    }
};

int
main()
{
    Test<0> T;
}
-------------------------------------------------------------------------------


-- 


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


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

end of thread, other threads:[~2013-05-24 10:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-25503-4@http.gcc.gnu.org/bugzilla/>
2013-05-24  9:42 ` [Bug c++/25503] g++ accepts invalid typedef in template code paolo.carlini at oracle dot com
2013-05-24 10:08 ` paolo.carlini at oracle dot com
2005-12-20 12:25 [Bug c++/25503] New: " d dot bonekaemper at rtsgroup dot net
2005-12-20 12:28 ` [Bug c++/25503] " d dot bonekaemper at rtsgroup dot net
2005-12-20 16:03 ` bangerth at dealii 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).