https://llvm.org/bugs/show_bug.cgi?id=31934
Bug ID: 31934 Summary: Functions with non-tautological enable_if conditions shouldn't be assignable to references Product: clang Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: C++ Assignee: george.burgess...@gmail.com Reporter: george.burgess...@gmail.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified This behavior is good: $ echo 'void foo(void) __attribute__((enable_if(false, ""))); void (*f)(void) = foo;' | $clangpp -x c++ -o/dev/null - error: cannot take address of function 'foo' because it has one or more non-tautological enable_if conditions $ This behavior is bad: $ echo 'void foo(void) __attribute__((enable_if(false, ""))); void (&f)(void) = foo;' | $clangpp -x c++ -o/dev/null - $ ...The difference being that we use *f in the good example, but &f in the bad. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs