[Bug c++/77911] Comparing function pointers in a constexpr function can produce an error.

2016-10-12 Thread yhueotnk at pokemail dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77911 --- Comment #3 from Dr Hilbert Swan --- A generous fellow offered me this workaround for the time being: void test1(){} void test2(){} void test3(){} void test4(){} #define FUNCTION_LIST test1, test2, test3, test4 template

[Bug c++/77911] Comparing function pointers in a constexpr function can produce an error.

2016-10-11 Thread yhueotnk at pokemail dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77911 --- Comment #2 from Dr Hilbert Swan --- If a similar thing is done with ints the code would look like this: constexpr int i[] = { 1, 2, 3 }; constexpr int FindMatchingIdx(const int w, const int idx) { return (w == i[idx]) ? (idx) : (FindMat

[Bug c++/77911] Comparing function pointers in a constexpr function can produce an error.

2016-10-09 Thread yhueotnk at pokemail dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77911 --- Comment #1 from Dr Hilbert Swan --- Created attachment 39777 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39777&action=edit Version that compiles.

[Bug c++/77911] New: Comparing function pointers in a constexpr function can produce an error.

2016-10-09 Thread yhueotnk at pokemail dot net
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: yhueotnk at pokemail dot net Target Milestone: --- Created attachment 39776 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39776&action=edit Compiler .ii ou