public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50785] New: [C++0x][constexpr] static constexpr double undefined reference
@ 2011-10-19  1:04 trashyankes at wp dot pl
  2011-10-19  1:35 ` [Bug c++/50785] " paolo.carlini at oracle dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: trashyankes at wp dot pl @ 2011-10-19  1:04 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50785
           Summary: [C++0x][constexpr] static constexpr double undefined
                    reference
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: trashyankes@wp.pl
             Build: MinGW 4.6.0 20110210; MinGW 4.7.0 20110815


#include <complex>
using namespace std;

struct test
{
    static constexpr double value = 0.0003;
};
int main()
{
    complex<double> x = complex<double>(0,1)*test::value; 
    // D:\Praca\Trash/newmain.cpp:10: undefined reference to `test::value'
}

modyfing line 10 to
complex<double> x = complex<double>(0,1)*(1*test::value);
fix it.


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

end of thread, other threads:[~2011-10-19 17:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-19  1:04 [Bug c++/50785] New: [C++0x][constexpr] static constexpr double undefined reference trashyankes at wp dot pl
2011-10-19  1:35 ` [Bug c++/50785] " paolo.carlini at oracle dot com
2011-10-19  8:35 ` redi at gcc dot gnu.org
2011-10-19 12:34 ` paolo.carlini at oracle dot com
2011-10-19 12:45 ` redi at gcc dot gnu.org
2011-10-19 12:46 ` redi at gcc dot gnu.org
2011-10-19 12:49 ` paolo.carlini at oracle dot com
2011-10-19 12:55 ` [Bug c++/50785] [C++0x] " daniel.kruegler at googlemail dot com
2011-10-19 12:58 ` [Bug c++/50785] [C++0x][constexpr] " paolo.carlini at oracle dot com
2011-10-19 13:04 ` [Bug c++/50785] [C++0x] " redi at gcc dot gnu.org
2011-10-19 13:09 ` daniel.kruegler at googlemail dot com
2011-10-19 16:35 ` trashyankes at wp dot pl
2011-10-19 16:58 ` redi at gcc dot gnu.org
2011-10-19 17:12 ` redi at gcc dot gnu.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).