public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43947] [C++0x] constexpr should allow declaration without a definition
       [not found] <bug-43947-4@http.gcc.gnu.org/bugzilla/>
@ 2011-03-17  1:10 ` jason at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-17  1:10 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-17 00:57:56 UTC ---
Fixed with the real constexpr implementation in 4.6.


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

* [Bug c++/43947] [C++0x] constexpr should allow declaration without a definition
  2010-04-30 12:16 [Bug c++/43947] New: " public at alisdairm dot net
                   ` (2 preceding siblings ...)
  2010-04-30 13:16 ` public at alisdairm dot net
@ 2010-04-30 15:42 ` paolo dot carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-04-30 15:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot carlini at oracle dot com  2010-04-30 15:41 -------
> I am aware constexpr is not fully supported,

To be clear: officially, is not supported *at all*. If Jason told you that we
want to remember this specific detail in Bugzilla, fine, of course. You may
want to add in CC Gaby, also: AFAIK: he is still working on the GCC constexpr.


-- 


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


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

* [Bug c++/43947] [C++0x] constexpr should allow declaration without a definition
  2010-04-30 12:16 [Bug c++/43947] New: " public at alisdairm dot net
  2010-04-30 12:56 ` [Bug c++/43947] " redi at gcc dot gnu dot org
  2010-04-30 12:57 ` paolo dot carlini at oracle dot com
@ 2010-04-30 13:16 ` public at alisdairm dot net
  2010-04-30 15:42 ` paolo dot carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: public at alisdairm dot net @ 2010-04-30 13:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from public at alisdairm dot net  2010-04-30 13:15 -------
Subject: Re:  [C++0x] constexpr should allow declaration without a
         definition

I am aware constexpr is not fully supported, and checked with Jason before
filing this issue.

We believe that constexpr should currently support correct syntax checking, and
issues with syntax (not semantic) are valid for fixes in 4.5.

Clearly, there will be no support for using the result of a constexpr function
in constant expression, but it should act like a regular inline function, with
a few additional constraints.

This is actually impacting a project I am developing (home-brew STL
implementation) where I am currently placing constexpr where standard requires
it, but #defining it away until compilers support it.  GCC 4.5 fires off errors
in my code for detecting constexpr support, so I really don't want to #define
away a keyword if I can avoid it.

If the intent is that these parser issues will not be addressed in 4.5, then I
will revert my library to the old behaviour, but this would be a very useful
experiment if it could continue (looking at how code changes to live within
constexpr restrictions, that may affect how appropriate it is in practice for
all library uses if there is a runtime efficiency impact in
non-constant-expression usage)

On Apr 30, 2010, at 8:57 AM, paolo dot carlini at oracle dot com wrote:

> 
> 
> ------- Comment #2 from paolo dot carlini at oracle dot com  2010-04-30 12:57 -------
> Really, constexpr are *not* available yet, it seems definitely too early to
> file PRs (in retrospect, I think we should not have committed those parser
> bits, are causing a lot of counfusion :(
> 
> 
> -- 
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43947
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.


-- 


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


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

* [Bug c++/43947] [C++0x] constexpr should allow declaration without a definition
  2010-04-30 12:16 [Bug c++/43947] New: " public at alisdairm dot net
  2010-04-30 12:56 ` [Bug c++/43947] " redi at gcc dot gnu dot org
@ 2010-04-30 12:57 ` paolo dot carlini at oracle dot com
  2010-04-30 13:16 ` public at alisdairm dot net
  2010-04-30 15:42 ` paolo dot carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-04-30 12:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo dot carlini at oracle dot com  2010-04-30 12:57 -------
Really, constexpr are *not* available yet, it seems definitely too early to
file PRs (in retrospect, I think we should not have committed those parser
bits, are causing a lot of counfusion :(


-- 


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


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

* [Bug c++/43947] [C++0x] constexpr should allow declaration without a definition
  2010-04-30 12:16 [Bug c++/43947] New: " public at alisdairm dot net
@ 2010-04-30 12:56 ` redi at gcc dot gnu dot org
  2010-04-30 12:57 ` paolo dot carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-30 12:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from redi at gcc dot gnu dot org  2010-04-30 12:55 -------
I think "support" is putting it a bit strongly :)

There is some code in place to recognise the keyword, that's about it


-- 


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


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

end of thread, other threads:[~2011-03-17  0:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43947-4@http.gcc.gnu.org/bugzilla/>
2011-03-17  1:10 ` [Bug c++/43947] [C++0x] constexpr should allow declaration without a definition jason at gcc dot gnu.org
2010-04-30 12:16 [Bug c++/43947] New: " public at alisdairm dot net
2010-04-30 12:56 ` [Bug c++/43947] " redi at gcc dot gnu dot org
2010-04-30 12:57 ` paolo dot carlini at oracle dot com
2010-04-30 13:16 ` public at alisdairm dot net
2010-04-30 15:42 ` paolo dot carlini at oracle dot com

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