diff --git a/src/build/property.jam b/src/build/property.jam index b95e604ae..43a8b6951 100644 --- a/src/build/property.jam +++ b/src/build/property.jam @@ -808,6 +808,7 @@ class property-map if $(best[2]) { import errors : error : errors.error ; + properties = [ $(property-set).raw ] ; errors.error "Ambiguous key $(properties:J= :E=)" ; } return $(best) ; @@ -969,6 +970,10 @@ rule __test__ ( ) $(pm).insert gcc NT : obj ; $(pm).insert gcc CYGWIN : obj ; + try ; + $(pm).find [ new property-set gcc NT CYGWIN ] ; + catch "Ambiguous key gcc NT CYGWIN" ; + assert.equal o : [ $(pm).find-replace gcc ] ; assert.equal obj : [ $(pm).find-replace gcc NT ] ;