[Bug c++/62223] error: there are no arguments to ‘static_asssert’ that depend on a template parameter, so a declaration of ‘static_asssert’ must be available

2014-08-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62223

--- Comment #7 from Jonathan Wakely redi at gcc dot gnu.org ---
(In reply to tower120 from comment #6)
 Because there are no arguments to 'static_asssert' that depend on a
 template parameter means that there IS such a function, but it does not
 accept current parameters set (IMHO).

No. A declaration must be available does not mean a declaration is available
but it is not usable


[Bug c++/62223] error: there are no arguments to ‘static_asssert’ that depend on a template parameter, so a declaration of ‘static_asssert’ must be available

2014-08-22 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62223

Marc Glisse glisse at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Marc Glisse glisse at gcc dot gnu.org ---
I am going to take a guess that you forgot to specify -std=c++11 or equivalent?


[Bug c++/62223] error: there are no arguments to ‘static_asssert’ that depend on a template parameter, so a declaration of ‘static_asssert’ must be available

2014-08-22 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62223

--- Comment #2 from tower120 tower120 at gmail dot com ---
No, I compile it with -std=c++1y

Here, live example http://ideone.com/KsGrnH (though that is gcc-4.8.1)


[Bug c++/62223] error: there are no arguments to ‘static_asssert’ that depend on a template parameter, so a declaration of ‘static_asssert’ must be available

2014-08-22 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62223

--- Comment #3 from Marc Glisse glisse at gcc dot gnu.org ---
Typo, check the exact spelling of what g++ is complaining about.


[Bug c++/62223] error: there are no arguments to ‘static_asssert’ that depend on a template parameter, so a declaration of ‘static_asssert’ must be available

2014-08-22 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62223

--- Comment #4 from tower120 tower120 at gmail dot com ---
Typo indeed.
I'm so sorry.


[Bug c++/62223] error: there are no arguments to ‘static_asssert’ that depend on a template parameter, so a declaration of ‘static_asssert’ must be available

2014-08-22 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62223

Manuel López-Ibáñez manu at gcc dot gnu.org changed:

   What|Removed |Added

 CC||manu at gcc dot gnu.org

--- Comment #5 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
The spell-checker would have been helpful here. It would have said: did you
mean 'static_assert'?

[Bug c++/62223] error: there are no arguments to ‘static_asssert’ that depend on a template parameter, so a declaration of ‘static_asssert’ must be available

2014-08-22 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62223

--- Comment #6 from tower120 tower120 at gmail dot com ---
Well, classical static_asssert is not a function/variable/etc would be enough
for me.

Because there are no arguments to 'static_asssert' that depend on a template
parameter means that there IS such a function, but it does not accept current
parameters set (IMHO).